-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CTP-4101 Fix: Grading summary visible to students (#46)
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 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
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,22 @@ | ||
@mod @mod_coursework | ||
|
||
Feature: Grading summary table visibility | ||
Grading summary shouldn't be displayed to students | ||
|
||
Background: | ||
Given there is a course | ||
And there is a coursework | ||
And there is a student | ||
And there is a teacher | ||
|
||
Scenario: Grading summary table is visible to teachers | ||
Given I log in as the teacher | ||
And I visit the coursework page | ||
Then I should see "Grading Summary" | ||
And I should see "Graded and published" | ||
|
||
Scenario: Grading summary table is not visible to students | ||
Given I log in as the student | ||
And I visit the coursework page | ||
Then I should not see "Grading Summary" | ||
And I should not see "Graded and published" |