Skip to content

Commit

Permalink
Maintenance: Try to make the maintenance login message selenium test …
Browse files Browse the repository at this point in the history
…more robust.
  • Loading branch information
dominikklein committed Feb 11, 2022
1 parent 4c83541 commit d9e62c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/system/login/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
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)
Expand All @@ -29,6 +31,8 @@
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)
Expand Down

0 comments on commit d9e62c7

Please sign in to comment.