Maintenance: Try to make the maintenance login message selenium test more robust.
This commit is contained in:
parent
4c83541c21
commit
d9e62c7110
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,8 @@ RSpec.describe 'Login Message', type: :system, authenticated_as: false do
|
|||
it 'hides message on the go' do
|
||||
open_login_page
|
||||
|
||||
expect(page).to have_css('.js-maintenanceLogin', text: message)
|
||||
|
||||
Setting.set 'maintenance_login', false
|
||||
|
||||
expect(page).to have_no_css('.js-maintenanceLogin', text: message, wait: 30)
|
||||
|
@ -29,6 +31,8 @@ RSpec.describe 'Login Message', type: :system, authenticated_as: false do
|
|||
it 'changes message text on the go' do
|
||||
open_login_page
|
||||
|
||||
expect(page).to have_css('.js-maintenanceLogin', text: message)
|
||||
|
||||
Setting.set 'maintenance_login_message', alt_message
|
||||
|
||||
expect(page).to have_css('.js-maintenanceLogin', text: alt_message, wait: 30)
|
||||
|
|
Loading…
Reference in a new issue