File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
spec/system/teacher_interface Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 71
71
when_i_delete_work_history
72
72
then_i_see_the ( :teacher_check_work_histories_page )
73
73
and_i_see_two_work_histories
74
+
75
+ when_i_click_delete_work_history
76
+ then_i_see_the ( :teacher_delete_work_history_page )
77
+
78
+ when_i_delete_work_history
79
+ then_i_see_the ( :teacher_check_work_histories_page )
80
+ and_i_see_one_work_history
81
+
82
+ when_i_click_delete_work_history
83
+ then_i_see_the ( :teacher_delete_work_history_page )
84
+
85
+ when_i_delete_work_history
86
+ then_i_see_the ( :teacher_new_work_history_page )
74
87
end
75
88
76
89
private
@@ -262,6 +275,10 @@ def and_i_see_two_work_histories
262
275
expect ( teacher_check_work_histories_page . summary_cards . count ) . to eq ( 2 )
263
276
end
264
277
278
+ def and_i_see_one_work_history
279
+ expect ( teacher_check_work_histories_page . summary_cards . count ) . to eq ( 1 )
280
+ end
281
+
265
282
def teacher
266
283
@teacher ||= create ( :teacher )
267
284
end
You can’t perform that action at this time.
0 commit comments