Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 7dd33d2

Browse files
authored
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.
1 parent 6f3e8e3 commit 7dd33d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/system/bulk_assign_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
# Click Confirm
4848
topic_list_header.click_bulk_topics_confirm
49+
expect(assign_modal).to be_closed
4950

5051
# Reload and check that topic is now assigned
5152
visit "/latest"
@@ -65,6 +66,7 @@
6566

6667
# Click Confirm
6768
topic_list_header.click_bulk_topics_confirm
69+
expect(assign_modal).to be_closed
6870

6971
# Reload and check that topic is now assigned
7072
visit "/latest"

0 commit comments

Comments
 (0)