mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:52:45 +08:00
FIX: flaky system flags spec (#29694)
Wait for the flag button to arrive before clicking it.
This commit is contained in:
parent
4c1af2f414
commit
a0242764f3
|
@ -301,6 +301,7 @@ module PageObjects
|
|||
end
|
||||
|
||||
def open_flag_topic_modal
|
||||
expect(page).to have_css(".flag-topic", wait: Capybara.default_max_wait_time * 3)
|
||||
find(".flag-topic").click
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user