summaryrefslogtreecommitdiff
path: root/spec/features/u2f_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-04-12 10:50:24 +0200
committerRémy Coutable <remy@rymai.me>2019-04-12 10:50:33 +0200
commit5f36bb928bf448a30436c978cf6dc7a85f98dbf2 (patch)
tree3fc32559d793d6798dbf7c00bbc2db9306bb2feb /spec/features/u2f_spec.rb
parentf766f7afe4dd303854b7453734984b0ff8c8b3a7 (diff)
downloadgitlab-ce-5f36bb928bf448a30436c978cf6dc7a85f98dbf2.tar.gz
Fix a few specs after updating capybara and selenium-webdriver
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features/u2f_spec.rb')
-rw-r--r--spec/features/u2f_spec.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/features/u2f_spec.rb b/spec/features/u2f_spec.rb
index ae9b65d1a39..ea02f36d9d0 100644
--- a/spec/features/u2f_spec.rb
+++ b/spec/features/u2f_spec.rb
@@ -246,26 +246,6 @@ describe 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
end
end
end
-
- describe "when two-factor authentication is disabled" do
- let(:user) { create(:user) }
-
- before do
- user = gitlab_sign_in(:user)
- user.update_attribute(:otp_required_for_login, true)
- visit profile_account_path
- manage_two_factor_authentication
- expect(page).to have_content("Your U2F device needs to be set up.")
- register_u2f_device
- end
-
- it "deletes u2f registrations" do
- visit profile_two_factor_auth_path
- expect do
- accept_confirm { click_on "Disable" }
- end.to change { U2fRegistration.count }.by(-1)
- end
- end
end
describe 'fallback code authentication' do