FIX: flaky system flags spec (#29694)

Wait for the flag button to arrive before clicking it.
This commit is contained in:
Krzysztof Kotlarek 2024-11-13 07:13:18 +11:00 committed by GitHub
parent 4c1af2f414
commit a0242764f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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