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:
Joffrey JAFFEUX 2024-11-12 07:45:02 +09:00 committed by GitHub
parent 6f3e8e3b5c
commit 7dd33d299d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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"