mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-48159 mod_assign: Use proper step to navigate to homepage
This commit is contained in:
parent
3072d006be
commit
bed022decb
@ -30,7 +30,6 @@ Feature: Submit assignment without group
|
||||
| teacher1 | C2 | editingteacher |
|
||||
| student1 | C2 | student |
|
||||
| student2 | C2 | student |
|
||||
|
||||
And I log in as "teacher1"
|
||||
And I follow "Course 2"
|
||||
And I expand "Users" node
|
||||
@ -38,7 +37,6 @@ Feature: Submit assignment without group
|
||||
And I add "Student 1 (student1@asd.com)" user to "Group 1" group members
|
||||
And I add "Student 2 (student2@asd.com)" user to "Group 1" group members
|
||||
And I log out
|
||||
|
||||
When I log in as "student1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Allow default group"
|
||||
@ -51,14 +49,12 @@ Feature: Submit assignment without group
|
||||
And I press "Submit assignment"
|
||||
And I press "Continue"
|
||||
Then I should see "Submitted for grading"
|
||||
|
||||
And I follow "Course 1"
|
||||
And I follow "Require group membership"
|
||||
Then I should see "You're not a member of any group, please contact your teacher."
|
||||
And I should see "Nothing has been submitted for this assignment"
|
||||
And I should not see "Add submission"
|
||||
|
||||
And I follow "Home"
|
||||
And I am on homepage
|
||||
And I follow "Course 2"
|
||||
And I follow "Require group membership"
|
||||
Then I should not see "You're not a member of any group, please contact your teacher."
|
||||
@ -71,21 +67,17 @@ Feature: Submit assignment without group
|
||||
And I press "Continue"
|
||||
Then I should see "Submitted for grading"
|
||||
And I log out
|
||||
|
||||
When I log in as "student2"
|
||||
And I follow "Course 1"
|
||||
And I follow "Allow default group"
|
||||
Then I should see "Submitted for grading"
|
||||
|
||||
And I follow "Home"
|
||||
And I am on homepage
|
||||
And I follow "Course 2"
|
||||
And I follow "Require group membership"
|
||||
Then I should see "Submitted for grading"
|
||||
And I log out
|
||||
|
||||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
|
||||
And I follow "Allow default group"
|
||||
And I should see "1" in the "Groups" "table_row"
|
||||
And I should not see "The setting 'Require group to make submission' is turned on and some users are not allocated to groups, this will prevent them from submitting assignments."
|
||||
@ -94,7 +86,6 @@ Feature: Submit assignment without group
|
||||
And I should see "Default group" in the "Student 2" "table_row"
|
||||
And I should see "Submitted for grading" in the "Student 1" "table_row"
|
||||
And I should see "Submitted for grading" in the "Student 2" "table_row"
|
||||
|
||||
And I am on homepage
|
||||
And I follow "Course 1"
|
||||
And I follow "Require group membership"
|
||||
@ -105,10 +96,8 @@ Feature: Submit assignment without group
|
||||
And I should see "Default group" in the "Student 2" "table_row"
|
||||
And I should not see "Submitted for grading" in the "Student 1" "table_row"
|
||||
And I should not see "Submitted for grading" in the "Student 2" "table_row"
|
||||
|
||||
And I follow "Home"
|
||||
And I am on homepage
|
||||
And I follow "Course 2"
|
||||
|
||||
And I follow "Require group membership"
|
||||
And I should see "1" in the "Groups" "table_row"
|
||||
And I should not see "The setting 'Require group to make submission' is turned on and some users are not allocated to groups, this will prevent them from submitting assignments."
|
||||
|
Loading…
x
Reference in New Issue
Block a user