AutorÃa | Ultima modificación | Ver Log |
@core @core_course @core_courseformatFeature: Move activity using keyboardIn order to move activities without a mouseAs a userI need to select the activity destination with the keyboard.Background:Given the following "course" exists:| fullname | Course 1 || shortname | C1 || category | 0 || enablecompletion | 1 || numsections | 4 || initsections | 1 |And the following "activities" exist:| activity | name | intro | course | idnumber | section || assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 || book | Activity sample 2 | | C1 | sample2 | 2 || choice | Activity sample 3 | Test choice description | C1 | sample3 | 3 || choice | Other sample 3 | Test choice description | C1 | sample31 | 3 |And I log in as "admin"And I am on "Course 1" course homepage with editing mode on@javascriptScenario: Move activity to another section selecting the section nameGiven I open "Activity sample 3" actions menuAnd I click on "Move" "link" in the "Activity sample 3" activity# Focus on the modal content tree.When I press the tab keyAnd I press the tab key# Select the section 2.And I press the down keyAnd I press the down keyAnd I press enterThen I should see "Activity sample 3" in the "Section 2" "section"@javascriptScenario: Move activity to another section selecting an inner activityGiven I open "Activity sample 3" actions menuAnd I click on "Move" "link" in the "Activity sample 3" activity# Focus on the modal content tree.When I press the tab keyAnd I press the tab key# Open section 2.And I press the down keyAnd I press the down keyAnd I press the right key# Select first activity.And I press the down keyAnd I press enterThen I should see "Activity sample 3" in the "Section 2" "section"@javascriptScenario: Close a section in the move modalGiven I open "Activity sample 3" actions menuAnd I click on "Move" "link" in the "Activity sample 3" activityAnd I should see "Activity sample 3" in the ".modal-body" "css_element"# Focus on the modal content tree.When I press the tab keyAnd I press the tab key# Close section 3.And I press the down keyAnd I press the down keyAnd I press the down keyAnd I press the left key# Move to section 4.And I press the down keyAnd I press enterThen I should see "Activity sample 3" in the "Section 4" "section"@javascriptScenario: Move activity using open all sectionsGiven I open "Activity sample 3" actions menuAnd I click on "Move" "link" in the "Activity sample 3" activityAnd I should see "Activity sample 3" in the ".modal-body" "css_element"# Focus on the modal content tree.When I press the tab keyAnd I press the tab key# Open all sections.And I press the multiply key# Move down to section 4And I press the down keyAnd I press the down keyAnd I press the down keyAnd I press the down keyAnd I press the down keyAnd I press the down keyAnd I press the down keyAnd I press the down keyAnd I press enterThen I should see "Activity sample 3" in the "Section 4" "section"@javascriptScenario: Move activity using go to the last elementGiven I open "Activity sample 3" actions menuAnd I click on "Move" "link" in the "Activity sample 3" activity# Focus on the modal content tree.When I press the tab keyAnd I press the tab key# Go to the last section.And I press the end key# Move down to section 4And I press enterThen I should see "Activity sample 3" in the "Section 4" "section"@javascriptScenario: Move activity using go to the first elementGiven I open "Activity sample 3" actions menuAnd I click on "Move" "link" in the "Activity sample 3" activityAnd I should see "Activity sample 3" in the ".modal-body" "css_element"# Focus on the modal content tree.When I press the tab keyAnd I press the tab key# Move some sections down.And I press the down keyAnd I press the down keyAnd I press the down key# Go to the first section.And I press the home key# Move down to general sectionAnd I press enterThen I should see "Activity sample 3" in the "General" "section"