From 07fad8eff20a1eec56b150d6579a3b805b88e2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Meny?= Date: Fri, 11 Mar 2022 13:48:03 +0000 Subject: [PATCH] Small test refactor --- spec/features/auth/user_lockout_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/auth/user_lockout_spec.rb b/spec/features/auth/user_lockout_spec.rb index c4c7d17c4..35d9925a4 100644 --- a/spec/features/auth/user_lockout_spec.rb +++ b/spec/features/auth/user_lockout_spec.rb @@ -7,8 +7,8 @@ RSpec.describe "User Lockout" do context "when login-in with the wrong user password up to a maximum number of attempts" do before do + visit("/users/sign-in") attempt_number.times do - visit("/users/sign-in") fill_in("user[email]", with: user.email) fill_in("user[password]", with: "wrong_password") click_button("Sign in") @@ -27,8 +27,8 @@ RSpec.describe "User Lockout" do context "when login-in with the wrong admin password up to a maximum number of attempts" do before do + visit("/admin/sign-in") attempt_number.times do - visit("/admin/sign-in") fill_in("admin_user[email]", with: admin.email) fill_in("admin_user[password]", with: "wrong_password") click_button("Sign in")