Skip to content

Commit

Permalink
MDL-76635 behat: improve submission comments test
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Jun 20, 2023
1 parent 1b1a15a commit d797882
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mod/assign/tests/behat/submission_comments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Feature: In an assignment, students can comment in their submissions
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@example.com |
| student2 | Student | 1 | student2@example.com |
| student2 | Student | 2 | student2@example.com |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
Expand Down Expand Up @@ -49,13 +49,9 @@ Feature: In an assignment, students can comment in their submissions
Given the following "activities" exist:
| activity | course | name | assignsubmission_onlinetext_enabled |
| assign | C1 | Test assignment name | 1 |
And I am on the "Test assignment name" Activity page logged in as student1
And I press "Add submission"
And I set the following fields to these values:
| Online text | I'm the student submission |
And I press "Save changes"
And I log out

And the following "mod_assign > submissions" exist:
| assign | user | onlinetext |
| Test assignment name | student1 | student one submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row"
Expand Down

0 comments on commit d797882

Please sign in to comment.