Make system test stable

We need to wait for the request to materialize before checking the DB
This commit is contained in:
Jorge Manrubia
2025-11-18 10:20:02 +01:00
parent 4deb310497
commit b55bd70a8a
+3
View File
@@ -57,8 +57,11 @@ class SmokeTest < ApplicationSystemTestCase
card_el = page.find("#article_card_03axhd1h3qgnsffqplkyf28fv")
column_el = page.find("#column_03axmcferfmbnv4qg816nw6bg")
cards_count = column_el.find(".cards__expander-count").text.to_i
card_el.drag_to(column_el)
column_el.find(".cards__expander-count", text: cards_count + 1)
assert_equal("Triage", card.reload.column.name)
end