Improved selectors.
This commit is contained in:
parent
0165ec8f72
commit
4847d68687
1 changed files with 10 additions and 24 deletions
|
@ -57,16 +57,10 @@ class MaintenanceMessageTest < TestCase
|
|||
:value => message,
|
||||
:match_result => false,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'check',
|
||||
:css => '.modal-header',
|
||||
:result => true,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'watch_for',
|
||||
:area => 'body',
|
||||
:area => '.modal',
|
||||
:value => message,
|
||||
},
|
||||
{
|
||||
|
@ -121,16 +115,10 @@ class MaintenanceMessageTest < TestCase
|
|||
:value => message + ' #2',
|
||||
:match_result => false,
|
||||
},
|
||||
{
|
||||
:where => :instance1,
|
||||
:execute => 'check',
|
||||
:css => 'div.modal-backdrop.fade.in',
|
||||
:result => false,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'watch_for',
|
||||
:area => 'body',
|
||||
:area => '.modal',
|
||||
:value => message + ' #2',
|
||||
},
|
||||
{
|
||||
|
@ -198,17 +186,15 @@ class MaintenanceMessageTest < TestCase
|
|||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'match',
|
||||
:css => 'body',
|
||||
:execute => 'watch_for',
|
||||
:area => '.modal',
|
||||
:value => message + ' #3',
|
||||
:match_result => true,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'match',
|
||||
:css => 'body',
|
||||
:execute => 'watch_for',
|
||||
:area => '.modal',
|
||||
:value => 'Reload application',
|
||||
:match_result => true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue