DEV: Attempt to fix flaky spec (#27270)

This commit is contained in:
Jan Cernik 2024-05-31 10:57:43 -03:00 committed by GitHub
parent 0a9be3bfd8
commit 96a686c8dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,7 @@ shared_examples "login scenarios" do
login_modal.open
login_modal.fill(username: "john", password: "supersecurepassword")
login_modal.click_login
expect(page).to have_css(".not-activated-modal")
login_modal.click(".activation-controls button.resend")
wait_for(timeout: 5) { ActionMailer::Base.deliveries.count != 0 }