From e29ad8b505a0601afa0b3906b4a0aa3b251d39f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 27 Mar 2025 16:41:45 +0100 Subject: [PATCH] Remove duplicate test We already have a test in the `level_three_verification_spec` file that checks the exact same things and then the letter verification. And, for the SMS step, we also have a test in the `sms_spec` file. --- .../level_two_verification_spec.rb | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/spec/system/verification/level_two_verification_spec.rb b/spec/system/verification/level_two_verification_spec.rb index 513ac2b62..2221496db 100644 --- a/spec/system/verification/level_two_verification_spec.rb +++ b/spec/system/verification/level_two_verification_spec.rb @@ -1,28 +1,6 @@ require "rails_helper" describe "Level two verification" do - scenario "Verification with residency and sms" do - create(:geozone) - user = create(:user) - login_as(user) - - visit account_path - click_link "Verify my account" - - verify_residence - - fill_in "sms_phone", with: "611111111" - click_button "Send" - - expect(page).to have_content "Security code confirmation" - - user = user.reload - fill_in "sms_confirmation_code", with: user.sms_confirmation_code - click_button "Send" - - expect(page).to have_content "Code correct" - end - context "In Spanish, with no fallbacks" do before { allow(I18n.fallbacks).to receive(:[]).and_return([:es]) }