DEV: ensure bulk action is done before checking for result (#602)
We were sometimes visiting latest before the request happens, the solution is to wait for the modal to have automatically closed as it indicates the request has finished and the state should be the one we expect.
This commit is contained in:
parent
6f3e8e3b5c
commit
7dd33d299d
|
@ -46,6 +46,7 @@ describe "Assign | Bulk Assign", type: :system do
|
|||
|
||||
# Click Confirm
|
||||
topic_list_header.click_bulk_topics_confirm
|
||||
expect(assign_modal).to be_closed
|
||||
|
||||
# Reload and check that topic is now assigned
|
||||
visit "/latest"
|
||||
|
@ -65,6 +66,7 @@ describe "Assign | Bulk Assign", type: :system do
|
|||
|
||||
# Click Confirm
|
||||
topic_list_header.click_bulk_topics_confirm
|
||||
expect(assign_modal).to be_closed
|
||||
|
||||
# Reload and check that topic is now assigned
|
||||
visit "/latest"
|
||||
|
|
Loading…
Reference in New Issue