MOBILE-4081 courses: Remove LMS UI behat steps
parent
2ad7d3fa41
commit
bd0c1c8c57
|
@ -72,18 +72,11 @@ Feature: Test basic usage of one course in app
|
||||||
| workshop | Test workshop name | Test workshop | C1 | workshop | 0 | 3 |
|
| workshop | Test workshop name | Test workshop | C1 | workshop | 0 | 3 |
|
||||||
|
|
||||||
Scenario: Self enrol
|
Scenario: Self enrol
|
||||||
Given I entered the course "Course 1" as "teacher1" in the app
|
Given I log in as "teacher1"
|
||||||
And I press "Course summary" in the app
|
And I am on "Course 1" course homepage
|
||||||
And I press "Open in browser" in the app
|
And I add "Self enrolment" enrolment method with:
|
||||||
And I switch to the browser tab opened by the app
|
| Custom instance name | Student self enrolment |
|
||||||
And I log in as "teacher1"
|
And I entered the app as "student2"
|
||||||
And I press "Actions menu"
|
|
||||||
And I follow "More..."
|
|
||||||
And I follow "Users"
|
|
||||||
And I follow "Enrolment methods"
|
|
||||||
And I click on "Enable" "icon" in the "Self enrolment (Student)" "table_row"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
Given I entered the app as "student2"
|
|
||||||
When I press "Site home" in the app
|
When I press "Site home" in the app
|
||||||
And I press "Available courses" in the app
|
And I press "Available courses" in the app
|
||||||
And I press "Course 1" in the app
|
And I press "Course 1" in the app
|
||||||
|
|
|
@ -406,18 +406,10 @@ Feature: Test basic usage of one course in app
|
||||||
|
|
||||||
@lms_from4.0
|
@lms_from4.0
|
||||||
Scenario: Self enrol
|
Scenario: Self enrol
|
||||||
Given I entered the course "Course 1" as "teacher1" in the app
|
Given I log in as "teacher1"
|
||||||
And I press "Course summary" in the app
|
And I add "Self enrolment" enrolment method in "Course 1" with:
|
||||||
And I press "Open in browser" in the app
|
| Custom instance name | Student self enrolment |
|
||||||
And I switch to the browser tab opened by the app
|
And I entered the app as "student2"
|
||||||
And I log in as "teacher1"
|
|
||||||
And I click on "Participants" "link"
|
|
||||||
And I select "Enrolment methods" from the "jump" singleselect
|
|
||||||
And I click on "Enable" "icon" in the "Self enrolment (Student)" "table_row"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
And I close the popup in the app
|
|
||||||
|
|
||||||
Given I entered the app as "student2"
|
|
||||||
When I press "Site home" in the app
|
When I press "Site home" in the app
|
||||||
And I press "Available courses" in the app
|
And I press "Available courses" in the app
|
||||||
And I press "Course 1" in the app
|
And I press "Course 1" in the app
|
||||||
|
|
|
@ -31,24 +31,10 @@ Feature: Test basic usage of courses in app
|
||||||
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
|
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | duedate | gradingduedate |
|
||||||
| assign | C1 | assign1 | assignment | Test assignment description | 1 |
|
| assign | C1 | assign1 | assignment | Test assignment description | 1 | ##tomorrow## | ##tomorrow## |
|
||||||
|
|
||||||
Scenario: Links to actions in Timeline work for teachers/students
|
Scenario: Links to actions in Timeline work for teachers/students
|
||||||
# Configure assignment as teacher
|
|
||||||
Given I entered the assign activity "assignment" on course "Course 1" as "teacher1" in the app
|
|
||||||
When I press "Information" in the app
|
|
||||||
And I press "Open in browser" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I press "Actions menu"
|
|
||||||
And I follow "Edit settings"
|
|
||||||
And I press "Expand all"
|
|
||||||
And I click on "duedate[enabled]" "checkbox"
|
|
||||||
And I click on "gradingduedate[enabled]" "checkbox"
|
|
||||||
And I press "Save and return to course"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
|
|
||||||
# Submit assignment as student
|
# Submit assignment as student
|
||||||
Given I entered the app as "student1"
|
Given I entered the app as "student1"
|
||||||
When I press "Open block drawer" in the app
|
When I press "Open block drawer" in the app
|
||||||
|
|
|
@ -31,8 +31,8 @@ Feature: Test basic usage of courses in app
|
||||||
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
|
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | duedate | gradingduedate |
|
||||||
| assign | C1 | assign1 | assignment | Test assignment description | 1 |
|
| assign | C1 | assign1 | assignment | Test assignment description | 1 | ##tomorrow## | ##tomorrow## |
|
||||||
|
|
||||||
Scenario: "Dashboard" tab displayed
|
Scenario: "Dashboard" tab displayed
|
||||||
Given I entered the app as "student1"
|
Given I entered the app as "student1"
|
||||||
|
@ -79,21 +79,6 @@ Feature: Test basic usage of courses in app
|
||||||
|
|
||||||
@lms_from3.11
|
@lms_from3.11
|
||||||
Scenario: Links to actions in Timeline work for teachers/students
|
Scenario: Links to actions in Timeline work for teachers/students
|
||||||
# Configure assignment as teacher
|
|
||||||
Given I entered the course "Course 1" as "teacher1" in the app
|
|
||||||
When I press "assignment" in the app
|
|
||||||
And I press "Information" in the app
|
|
||||||
And I press "Open in browser" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I press "Actions menu"
|
|
||||||
And I follow "Edit settings"
|
|
||||||
And I press "Expand all"
|
|
||||||
And I click on "duedate[enabled]" "checkbox"
|
|
||||||
And I click on "gradingduedate[enabled]" "checkbox"
|
|
||||||
And I press "Save and return to course"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
|
|
||||||
# Submit assignment as student
|
# Submit assignment as student
|
||||||
Given I entered the app as "student1"
|
Given I entered the app as "student1"
|
||||||
When I press "Open block drawer" in the app
|
When I press "Open block drawer" in the app
|
||||||
|
|
|
@ -34,8 +34,8 @@ Feature: Test basic usage of courses in app
|
||||||
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
|
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | duedate | gradingduedate |
|
||||||
| assign | C1 | assign1 | assignment | Test assignment description | 1 |
|
| assign | C1 | assign1 | assignment | Test assignment description | 1 | ##tomorrow## | ##tomorrow## |
|
||||||
|
|
||||||
@lms_from4.0
|
@lms_from4.0
|
||||||
Scenario: "Dashboard" tab displayed
|
Scenario: "Dashboard" tab displayed
|
||||||
|
@ -113,21 +113,7 @@ Feature: Test basic usage of courses in app
|
||||||
And I should find "Course 4" in the app
|
And I should find "Course 4" in the app
|
||||||
|
|
||||||
@lms_from4.0
|
@lms_from4.0
|
||||||
# TODO remove LMS UI steps in app tests
|
|
||||||
Scenario: Links to actions in Timeline work for teachers/students
|
Scenario: Links to actions in Timeline work for teachers/students
|
||||||
# Configure assignment as teacher
|
|
||||||
Given I entered the assign activity "assignment" on course "Course 1" as "teacher1" in the app
|
|
||||||
When I press "Information" in the app
|
|
||||||
And I press "Open in browser" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I navigate to "Settings" in current page administration
|
|
||||||
And I click on "Expand all" "link"
|
|
||||||
And I click on "duedate[enabled]" "checkbox"
|
|
||||||
And I click on "gradingduedate[enabled]" "checkbox"
|
|
||||||
And I press "Save and return to course"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
|
|
||||||
# Submit assignment as student
|
# Submit assignment as student
|
||||||
Given I entered the app as "student1"
|
Given I entered the app as "student1"
|
||||||
When I press "Add submission" in the app
|
When I press "Add submission" in the app
|
||||||
|
|
Loading…
Reference in New Issue