Skip to content

Commit

Permalink
DEV: ensure bulk action is done before checking for result (#602)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jjaffeux authored Nov 11, 2024
1 parent 6f3e8e3 commit 7dd33d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/system/bulk_assign_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

# 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"
Expand All @@ -65,6 +66,7 @@

# 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"
Expand Down

0 comments on commit 7dd33d2

Please sign in to comment.