Improved selectors.

This commit is contained in:
Martin Edenhofer 2014-12-03 21:29:33 +01:00
parent 0165ec8f72
commit 4847d68687

View file

@ -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',
},
{
@ -197,18 +185,16 @@ class MaintenanceMessageTest < TestCase
:match_result => false,
},
{
:where => :instance2,
:execute => 'match',
:css => 'body',
:value => message + ' #3',
:match_result => true,
:where => :instance2,
:execute => 'watch_for',
:area => '.modal',
:value => message + ' #3',
},
{
:where => :instance2,
:execute => 'match',
:css => 'body',
:value => 'Reload application',
:match_result => true,
:where => :instance2,
:execute => 'watch_for',
:area => '.modal',
:value => 'Reload application',
},
],
},