mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -18,8 +18,7 @@ Feature: Add scorm activity
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "SCORM package" to section "1"
|
||||
And I set the following fields to these values:
|
||||
| Name | Awesome SCORM package |
|
||||
|
@ -31,11 +30,11 @@ Feature: Add scorm activity
|
|||
And I should see "Preview"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Awesome SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
And I switch to "scorm_object" iframe
|
||||
And I should see "Not implemented yet"
|
||||
And I switch to the main frame
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: Scorm multi-sco completion
|
|||
@javascript
|
||||
Scenario: Test completion with a single sco completion.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -37,7 +36,7 @@ Feature: Scorm multi-sco completion
|
|||
Then I should see "Basic Multi-sco SCORM package"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Basic Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
@ -50,14 +49,13 @@ Feature: Scorm multi-sco completion
|
|||
And I am on homepage
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then "Student 1" user has completed "Basic Multi-sco SCORM package" activity
|
||||
|
||||
@javascript
|
||||
Scenario: Test completion with all scos and correct sco load on re-entry.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -74,7 +72,7 @@ Feature: Scorm multi-sco completion
|
|||
Then I should see "ADV Multi-sco SCORM package"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "ADV Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
@ -87,11 +85,11 @@ Feature: Scorm multi-sco completion
|
|||
And I am on homepage
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then "Student 1" user has not completed "ADV Multi-sco SCORM package" activity
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "ADV Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
@ -184,5 +182,5 @@ Feature: Scorm multi-sco completion
|
|||
And I am on homepage
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Student 1" user has completed "ADV Multi-sco SCORM package" activity
|
|
@ -15,8 +15,7 @@ Feature: Check a SCORM package with missing Organisational structure.
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "SCORM package" to section "1"
|
||||
And I set the following fields to these values:
|
||||
| Name | MissingOrg SCORM package |
|
||||
|
@ -28,7 +27,7 @@ Feature: Check a SCORM package with missing Organisational structure.
|
|||
And I should see "Preview"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "MissingOrg SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: Scorm multi-sco review mode.
|
|||
@javascript
|
||||
Scenario: Test review mode with a single sco completion.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -35,7 +34,7 @@ Feature: Scorm multi-sco review mode.
|
|||
And I should see "Basic Multi-sco SCORM package"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Basic Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
@ -45,8 +44,7 @@ Feature: Scorm multi-sco review mode.
|
|||
And I follow "Exit activity"
|
||||
And I wait until the page is ready
|
||||
And I should see "Basic Multi-sco SCORM package"
|
||||
And I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Basic Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
@ -55,8 +53,7 @@ Feature: Scorm multi-sco review mode.
|
|||
@javascript
|
||||
Scenario: Test review mode with all scos completed.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -73,7 +70,7 @@ Feature: Scorm multi-sco review mode.
|
|||
And I should see "ADV Multi-sco SCORM package"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "ADV Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
@ -168,8 +165,7 @@ Feature: Scorm multi-sco review mode.
|
|||
And I follow "Exit activity"
|
||||
And I wait until the page is ready
|
||||
And I should see "ADV Multi-sco SCORM package"
|
||||
And I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "ADV Multi-sco SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue