A platform for community discussion. Free, open, simple.
DEV: more resilient email change spec (#31754)
Joffrey JAFFEUXe6034af1ba86
diff --git a/spec/system/email_change_spec.rb b/spec/system/email_change_spec.rbindex 5775c342ad3..4afe21996b5 100644--- a/spec/system/email_change_spec.rb+++ b/spec/system/email_change_spec.rb@@ -59,11 +59,10 @@ describe "Changing email", type: :system dovisit generate_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("/u/#{user.username}/preferences/account")expect(user_preferences_page).to have_primary_email(new_email)end