From bc665c97bae1de0fc6f9605b3d28e15c95f70b29 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 20 May 2014 22:00:11 +0200 Subject: [PATCH] Improved css selectors. --- test/browser/manage_test.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/browser/manage_test.rb b/test/browser/manage_test.rb index aa8128941..e24d2b736 100644 --- a/test/browser/manage_test.rb +++ b/test/browser/manage_test.rb @@ -33,37 +33,37 @@ class ManageTest < TestCase }, { :execute => 'set', - :css => 'input[name=login]', + :css => '.modal input[name=login]', :value => 'some login' + random, }, { :execute => 'set', - :css => 'input[name="firstname"]', + :css => '.modal input[name="firstname"]', :value => 'Manage Firstname' + random, }, { :execute => 'set', - :css => 'input[name="lastname"]', + :css => '.modal input[name="lastname"]', :value => 'Manage Lastname' + random, }, { :execute => 'set', - :css => 'input[name="email"]', + :css => '.modal input[name="email"]', :value => user_email, }, { :execute => 'set', - :css => 'input[name="password"]', + :css => '.modal input[name="password"]', :value => 'some-pass', }, { :execute => 'set', - :css => 'input[name="password_confirm"]', + :css => '.modal input[name="password_confirm"]', :value => 'some-pass', }, { :execute => 'click', - :css => 'input[name="role_ids"][value="3"]', + :css => '.modal input[name="role_ids"][value="3"]', }, { :execute => 'click', @@ -84,7 +84,7 @@ class ManageTest < TestCase }, { :execute => 'set', - :css => 'input[name="lastname"]', + :css => '.modal input[name="lastname"]', :value => '2Manage Lastname' + random, }, { @@ -127,12 +127,12 @@ class ManageTest < TestCase }, { :execute => 'set', - :css => 'input[name=name]', + :css => '.modal input[name=name]', :value => 'some sla' + random, }, { :execute => 'set', - :css => 'input[name="first_response_time"]', + :css => '.modal input[name="first_response_time"]', :value => 61, }, { @@ -154,12 +154,12 @@ class ManageTest < TestCase }, { :execute => 'set', - :css => 'input[name=name]', + :css => '.modal input[name=name]', :value => 'some sla update ' + random, }, { :execute => 'set', - :css => 'input[name="first_response_time"]', + :css => '.modal input[name="first_response_time"]', :value => 121, }, {