mirror of
https://github.com/discourse/discourse.git
synced 2025-05-01 02:04:40 +08:00
DEV: Update email_change_spec to increase wait time in CI (#25522)
CI runs on slower machines, so we need to use longer wait times. `Capybara.default_max_wait_time` is automatically reconfigured based on the environment.
This commit is contained in:
parent
02953ec5fa
commit
9bd6523581
@ -19,7 +19,7 @@ describe "Changing email", type: :system do
|
|||||||
|
|
||||||
find(".save-button button").click
|
find(".save-button button").click
|
||||||
|
|
||||||
wait_for(timeout: 5) { ActionMailer::Base.deliveries.count === 1 }
|
wait_for(timeout: Capybara.default_max_wait_time) { ActionMailer::Base.deliveries.count === 1 }
|
||||||
|
|
||||||
if user.admin?
|
if user.admin?
|
||||||
get_link_from_email(:old)
|
get_link_from_email(:old)
|
||||||
@ -138,7 +138,7 @@ describe "Changing email", type: :system do
|
|||||||
find(".dialog-footer .btn-primary").click
|
find(".dialog-footer .btn-primary").click
|
||||||
|
|
||||||
# Confirm new email
|
# Confirm new email
|
||||||
wait_for(timeout: 5) { ActionMailer::Base.deliveries.count === 2 }
|
wait_for(timeout: Capybara.default_max_wait_time) { ActionMailer::Base.deliveries.count === 2 }
|
||||||
confirm_new_link = get_link_from_email(:new)
|
confirm_new_link = get_link_from_email(:new)
|
||||||
|
|
||||||
visit confirm_new_link
|
visit confirm_new_link
|
||||||
@ -169,7 +169,7 @@ describe "Changing email", type: :system do
|
|||||||
find(".dialog-footer .btn-primary").click
|
find(".dialog-footer .btn-primary").click
|
||||||
|
|
||||||
# Confirm new email
|
# Confirm new email
|
||||||
wait_for(timeout: 5) { ActionMailer::Base.deliveries.count === 2 }
|
wait_for(timeout: Capybara.default_max_wait_time) { ActionMailer::Base.deliveries.count === 2 }
|
||||||
confirm_new_link = get_link_from_email(:new)
|
confirm_new_link = get_link_from_email(:new)
|
||||||
|
|
||||||
visit confirm_new_link
|
visit confirm_new_link
|
||||||
|
Loading…
x
Reference in New Issue
Block a user