Maintenance: Try to improve the stabilzation of the security settings selenium test.
This commit is contained in:
parent
041c0d61ef
commit
9beb793e3b
1 changed files with 2 additions and 2 deletions
|
@ -6,12 +6,11 @@ RSpec.describe 'Manage > Settings > Security', type: :system do
|
||||||
describe 'configure third-party applications' do
|
describe 'configure third-party applications' do
|
||||||
shared_examples 'for third-party applications button in login page' 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
|
context 'for third-party applications button in login page', authenticated_as: false do
|
||||||
before { visit 'login' }
|
|
||||||
|
|
||||||
context 'when feature is on' do
|
context 'when feature is on' do
|
||||||
before { Setting.set(app_setting, true) }
|
before { Setting.set(app_setting, true) }
|
||||||
|
|
||||||
it 'has authentication button in login page' do
|
it 'has authentication button in login page' do
|
||||||
|
visit 'login'
|
||||||
expect(page).to have_button(app_name)
|
expect(page).to have_button(app_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -20,6 +19,7 @@ RSpec.describe 'Manage > Settings > Security', type: :system do
|
||||||
before { Setting.set(app_setting, false) }
|
before { Setting.set(app_setting, false) }
|
||||||
|
|
||||||
it 'does not have authentication button in login page' do
|
it 'does not have authentication button in login page' do
|
||||||
|
visit 'login'
|
||||||
expect(page).to have_no_button(app_name)
|
expect(page).to have_no_button(app_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue