Commit 28fc6536 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'kp-add-2fa-recovery-page-tests' into 'master'

Enable JS on 2FA page specs to catch validation errors

See merge request gitlab-org/gitlab!23514
parents 82304fbb b172edc1
......@@ -152,7 +152,7 @@ describe 'Login' do
end
end
describe 'with two-factor authentication' do
describe 'with two-factor authentication', :js do
def enter_code(code)
fill_in 'user_otp_attempt', with: code
click_button 'Verify code'
......
......@@ -13,7 +13,7 @@ module UserLoginHelper
def ensure_tab_pane_counts
tabs_count = page.all('[role="tab"]').size
expect(page).to have_selector('[role="tabpanel"]', count: tabs_count)
expect(page).to have_selector('[role="tabpanel"]', visible: :all, count: tabs_count)
end
def ensure_one_active_tab
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment