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, :value => message,
:match_result => false, :match_result => false,
}, },
{
:where => :instance2,
:execute => 'check',
:css => '.modal-header',
:result => true,
},
{ {
:where => :instance2, :where => :instance2,
:execute => 'watch_for', :execute => 'watch_for',
:area => 'body', :area => '.modal',
:value => message, :value => message,
}, },
{ {
@ -121,16 +115,10 @@ class MaintenanceMessageTest < TestCase
:value => message + ' #2', :value => message + ' #2',
:match_result => false, :match_result => false,
}, },
{
:where => :instance1,
:execute => 'check',
:css => 'div.modal-backdrop.fade.in',
:result => false,
},
{ {
:where => :instance2, :where => :instance2,
:execute => 'watch_for', :execute => 'watch_for',
:area => 'body', :area => '.modal',
:value => message + ' #2', :value => message + ' #2',
}, },
{ {
@ -197,18 +185,16 @@ class MaintenanceMessageTest < TestCase
:match_result => false, :match_result => false,
}, },
{ {
:where => :instance2, :where => :instance2,
:execute => 'match', :execute => 'watch_for',
:css => 'body', :area => '.modal',
:value => message + ' #3', :value => message + ' #3',
:match_result => true,
}, },
{ {
:where => :instance2, :where => :instance2,
:execute => 'match', :execute => 'watch_for',
:css => 'body', :area => '.modal',
:value => 'Reload application', :value => 'Reload application',
:match_result => true,
}, },
], ],
}, },