MOBILE-3833 behat: Fix changes in LMS UI

main
Noel De Martin 2021-12-20 17:31:54 +01:00
parent b99f47e330
commit f768a19748
3 changed files with 9 additions and 40 deletions

View File

@ -199,7 +199,6 @@ Feature: Test basic usage of choice activity in app
And I press "Open in browser" 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 switch to the browser tab opened by the app
And I log in as "teacher1" And I log in as "teacher1"
And I press "Actions menu"
And I follow "Responses" And I follow "Responses"
And I press "Download in text format" And I press "Download in text format"
# TODO Then I should find "..." in the downloads folder # TODO Then I should find "..." in the downloads folder

View File

@ -415,10 +415,8 @@ Feature: Test basic usage of one course in app
And I press "Open in browser" 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 switch to the browser tab opened by the app
And I log in as "teacher1" And I log in as "teacher1"
And I press "Actions menu" And I click on "Participants" "link"
And I follow "More..." And I select "Enrolment methods" from the "jump" singleselect
And I follow "Users"
And I follow "Enrolment methods"
And I click on "Enable" "icon" in the "Self enrolment (Student)" "table_row" 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 browser tab opened by the app
When I enter the app When I enter the app
@ -455,10 +453,8 @@ Feature: Test basic usage of one course in app
And I press "Open in browser" 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 switch to the browser tab opened by the app
And I log in as "teacher1" And I log in as "teacher1"
And I press "Actions menu" And I click on "Participants" "link"
And I follow "More..." And I select "Enrolment methods" from the "jump" singleselect
And I follow "Users"
And I follow "Enrolment methods"
And I click on "Enable" "icon" in the "Guest access" "table_row" And I click on "Enable" "icon" in the "Guest access" "table_row"
And I close the browser tab opened by the app And I close the browser tab opened by the app
When I enter the app When I enter the app
@ -485,30 +481,11 @@ Feature: Test basic usage of one course in app
And I should find "Test scorm name" in the app And I should find "Test scorm name" in the app
And I should find "Test workshop name" in the app And I should find "Test workshop name" in the app
# TODO remove LMS UI steps in app tests
Scenario: View blocks on drawer Scenario: View blocks on drawer
Given I enter the app Given the following "blocks" exist:
And I log in as "teacher1" | blockname | contextlevel | reference | pagetypepattern | defaultregion | configdata |
And I enter the course "Course 1" in the app | html | Course | C1 | course-view-* | site-pre | Tzo4OiJzdGRDbGFzcyI6Mjp7czo1OiJ0aXRsZSI7czoxNToiSFRNTCB0aXRsZSB0ZXN0IjtzOjQ6InRleHQiO3M6OToiYm9keSB0ZXN0Ijt9 |
And I press "Display options" in the app | activity_modules | Course | C1 | course-view-* | site-pre | |
And I press "Course summary" 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 click on "Edit mode" "checkbox"
And I click on "Side panel" "button"
And I follow "Add a block"
And I follow "Text"
And I click on "Side panel" "button"
And I follow "Add a block"
And I follow "Activities"
And I click on "Open block drawer" "button"
And I click on "Actions menu" "icon" in the "#action-menu-toggle-0" "css_element"
And I follow "Configure (new text block) block"
And I set the field "Text block title" to "HTML title test"
And I set the field "Content" to "body test"
And I press "Save changes"
And I close the browser tab opened by the app
When I enter the app When I enter the app
And I log in as "student1" And I log in as "student1"
And I enter the course "Course 1" in the app And I enter the course "Course 1" in the app

View File

@ -101,12 +101,7 @@ Feature: Test basic usage of courses in app
# TODO remove LMS UI steps in app tests # 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 # Configure assignment as teacher
When I enter the app When I enter the course "Course 1" as "teacher1" in the app
And I log in as "teacher1"
Then I press "Open block drawer" in the app
Then I should find "Timeline" in the app
Given I press "Course 1" in the app
And I press "assignment" in the app And I press "assignment" in the app
And I press "Display options" in the app And I press "Display options" in the app
And I press "Open in browser" in the app And I press "Open in browser" in the app
@ -123,7 +118,6 @@ Feature: Test basic usage of courses in app
# Submit assignment as student # Submit assignment as student
When I enter the app When I enter the app
And I log in as "student1" And I log in as "student1"
Then I press "Open block drawer" in the app
And I press "Add submission" in the app And I press "Add submission" in the app
Then the header should be "assignment" in the app Then the header should be "assignment" in the app
And I should find "Test assignment description" in the app And I should find "Test assignment description" in the app
@ -143,7 +137,6 @@ Feature: Test basic usage of courses in app
# Grade assignment as teacher # Grade assignment as teacher
When I enter the app When I enter the app
And I log in as "teacher1" And I log in as "teacher1"
Then I press "Open block drawer" in the app
And I press "Grade" in the app And I press "Grade" in the app
Then the header should be "assignment" in the app Then the header should be "assignment" in the app
And I should find "Test assignment description" in the app And I should find "Test assignment description" in the app