From 4847d68687157b82e29cc806414d7c20306814c8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 3 Dec 2014 21:29:33 +0100 Subject: [PATCH] Improved selectors. --- test/browser/maintenance_message_test.rb | 34 +++++++----------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/test/browser/maintenance_message_test.rb b/test/browser/maintenance_message_test.rb index 06b837337..b8d80dadd 100644 --- a/test/browser/maintenance_message_test.rb +++ b/test/browser/maintenance_message_test.rb @@ -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', }, ], },