mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-59195 mod_assign: add behat tests for comments error
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@mod @mod_assign | ||
Feature: Switch role does not cause an error message in assignsubmission_comments | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | | ||
| Course 1 | C1 | | ||
And the following "users" exist: | ||
| username | | ||
| teacher1 | | ||
And the following "course enrolments" exist: | ||
| course | user | role | | ||
| C1 | teacher1 | editingteacher | | ||
And I log in as "teacher1" | ||
And I am on "Course 1" course homepage | ||
And I turn editing mode on | ||
And I add a "Assignment" to section "1" and I fill the form with: | ||
| Assignment name | Test assignment | | ||
| Description | This is the description text | | ||
| Students submit in groups | Yes | | ||
|
||
Scenario: I switch role to student and an error doesn't occur | ||
When I follow "Switch role to..." in the user menu | ||
And I press "Student" | ||
And I follow "Test assignment" | ||
Then I should see "This is the description text" |