Maintenance: Try to improve the stabilzation of the maintenance app version selenium test.
This commit is contained in:
parent
52587ca9e2
commit
587f36d220
1 changed files with 4 additions and 2 deletions
|
@ -4,13 +4,15 @@ require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe 'System > Maintenance - App Version', type: :system do
|
RSpec.describe 'System > Maintenance - App Version', type: :system do
|
||||||
it 'check that new version modal dialog is present' do
|
it 'check that new version modal dialog is present' do
|
||||||
|
visit 'ticket/zoom/1'
|
||||||
|
|
||||||
page.execute_script 'App.Event.trigger("maintenance", {type:"app_version", app_version:"1234:false"} )'
|
page.execute_script 'App.Event.trigger("maintenance", {type:"app_version", app_version:"1234:false"} )'
|
||||||
|
|
||||||
expect(page).to have_no_text('new version')
|
expect(page).to have_no_text('new version', wait: 10)
|
||||||
|
|
||||||
page.execute_script 'App.Event.trigger("maintenance", {type:"app_version", app_version:"1234:true"} )'
|
page.execute_script 'App.Event.trigger("maintenance", {type:"app_version", app_version:"1234:true"} )'
|
||||||
|
|
||||||
modal_ready(timeout: 10)
|
modal_ready timeout: 10
|
||||||
|
|
||||||
within '.modal-dialog' do
|
within '.modal-dialog' do
|
||||||
expect(page).to have_text('new version')
|
expect(page).to have_text('new version')
|
||||||
|
|
Loading…
Reference in a new issue