Commit 4c66f15 1 parent c8b5daf commit 4c66f15 Copy full SHA for 4c66f15
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ def test_submit_changes_form_data(self):
40
40
role = Contribution .Role .EDITOR ,
41
41
)
42
42
43
- self .enter_staff_mode ()
44
- self .selenium .get (self .live_server_url + reverse ("staff:evaluation_edit" , args = [evaluation .pk ]))
43
+ with self .enter_staff_mode ():
44
+ self .selenium .get (self .live_server_url + reverse ("staff:evaluation_edit" , args = [evaluation .pk ]))
45
45
46
46
row = self .wait .until (visibility_of_element_located ((By .CSS_SELECTOR , "#id_contributions-0-contributor" )))
47
47
tomselect_options = row .get_property ("tomselect" )["options" ]
@@ -62,7 +62,8 @@ def test_submit_changes_form_data(self):
62
62
editor_labels [0 ].click ()
63
63
own_and_general_labels [0 ].click ()
64
64
65
- submit_btn .click ()
65
+ with self .enter_staff_mode ():
66
+ submit_btn .click ()
66
67
67
68
contribution1 .refresh_from_db ()
68
69
You can’t perform that action at this time.
0 commit comments