Maintenance: Try to improve the stabilzation of the security settings selenium test.

This commit is contained in:
Dominik Klein 2021-09-23 10:21:15 +02:00
parent 041c0d61ef
commit 9beb793e3b
1 changed files with 2 additions and 2 deletions

View File

@ -6,12 +6,11 @@ RSpec.describe 'Manage > Settings > Security', type: :system do
describe 'configure third-party applications' do
shared_examples 'for third-party applications button in login page' do
context 'for third-party applications button in login page', authenticated_as: false do
before { visit 'login' }
context 'when feature is on' do
before { Setting.set(app_setting, true) }
it 'has authentication button in login page' do
visit 'login'
expect(page).to have_button(app_name)
end
end
@ -20,6 +19,7 @@ RSpec.describe 'Manage > Settings > Security', type: :system do
before { Setting.set(app_setting, false) }
it 'does not have authentication button in login page' do
visit 'login'
expect(page).to have_no_button(app_name)
end
end