Make system test stable
We need to wait for the request to materialize before checking the DB
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user