A platform for community discussion. Free, open, simple.
DEV: more resilient email change spec (#31750)
Joffrey JAFFEUX31b621bfda91
diff --git a/spec/system/email_change_spec.rb b/spec/system/email_change_spec.rbindex ea60f5b616a..5775c342ad3 100644--- a/spec/system/email_change_spec.rb+++ b/spec/system/email_change_spec.rb@@ -118,11 +118,10 @@ describe "Changing email", type: :system dovisit confirm_linkfind(".confirm-new-email .btn-primary").click-find(".second-factor-token-input").fill_in with: second_factor.totp_object.now-find("button[type=submit]").click+ expect(page).to have_content(I18n.t("js.second_factor_auth.redirect_after_success"))expect(page).to have_current_path("/latest")expect(user.reload.email).to eq(new_email)end