From e320a375d37a3460d229e9bf9c9c87d064c440dd Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 12 Feb 2025 21:28:44 -0500 Subject: [PATCH] DEV: Remove redundant system spec (#31317) This is covered by the two specs above it: "automatically redirects when going to /signup" and "automatically redirects when skipping the signup form" (Plus, it doesn't do what it says on the label.) --- spec/system/social_authentication_spec.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/spec/system/social_authentication_spec.rb b/spec/system/social_authentication_spec.rb index b0fcdbea32d..1a2cf4821a0 100644 --- a/spec/system/social_authentication_spec.rb +++ b/spec/system/social_authentication_spec.rb @@ -314,26 +314,6 @@ shared_examples "social authentication scenarios" do |signup_page_object, login_ visit("/login") expect(page).to have_css(".header-dropdown-toggle.current-user") end - - it "works with existing users when auth_immediately is enabled" do - SiteSetting.auth_immediately = false - SiteSetting.login_required = true - mock_google_auth - - visit("/signup") - expect(signup_form).to be_open - expect(signup_form).to have_no_password_input - expect(signup_form).to have_valid_username - expect(signup_form).to have_valid_email - signup_form.click_create_account - - find(".header-dropdown-toggle.current-user").click - find("#user-menu-button-profile").click - find("#quick-access-profile .logout").click - visit("/") - find(".login-welcome .login-button").click - expect(page).to have_css(".header-dropdown-toggle.current-user") - end end it "automatically redirects when using the login button" do