-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added helper test to see if buttons are disabled
- Loading branch information
Showing
1 changed file
with
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -776,7 +776,7 @@ def helper_test_contributor(self, user, view_contributor_results, textanswers_in | |
self.assertNotIn(answer,page) | ||
|
||
def test_manager(self): | ||
with run_in_staff_mode(self): # in staff mode | ||
with run_in_staff_mode(self): # in staff mode, the manager can see everything | ||
user = "[email protected]" | ||
|
||
self.helper_test_general(user, ViewGeneralResults.FULL, [".general_orig_published.", ".general_additional_orig_published.", ".general_changed_published."]) | ||
|
@@ -795,7 +795,13 @@ def test_manager(self): | |
self.helper_test_contributor(user, ViewContributorResults.RATINGS, []) | ||
self.helper_test_contributor(user, ViewContributorResults.PERSONAL, []) | ||
|
||
|
||
def test_manager_active_buttons(self): # this whether the filter buttons are active or not, this is just a little helper, an elaborate test for this will be implemented | ||
with run_in_staff_mode(self): | ||
user = "[email protected]" | ||
|
||
page = self.app.get("/results/semester/1/evaluation/1", user=user) | ||
self.assertNotIn("btn btn-sm btn-light disabled", page) | ||
|
||
|
||
def test_student(self): | ||
user = "[email protected]" | ||
|