From ac7d3f9cba04c3d83173fd70a1de4fe1c1fe4ac4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 30 Sep 2015 08:36:15 +0200 Subject: [PATCH] More tolerance for css selectors. --- test/browser/agent_ticket_actions_level0_test.rb | 2 +- test/browser/agent_ticket_actions_level1_test.rb | 4 ++-- test/browser/agent_user_profile_test.rb | 2 +- test/browser_test_helper.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/browser/agent_ticket_actions_level0_test.rb b/test/browser/agent_ticket_actions_level0_test.rb index d9a9e69f4..3153ebaa9 100644 --- a/test/browser/agent_ticket_actions_level0_test.rb +++ b/test/browser/agent_ticket_actions_level0_test.rb @@ -234,7 +234,7 @@ class AgentTicketActionLevel0Test < TestCase ) click( browser: browser2, - css: '.active div[data-tab="ticket"] .js-actions a[data-type="customer-change"]', + css: '.active div[data-tab="ticket"] .js-actions [data-type="customer-change"]', ) sleep 1 diff --git a/test/browser/agent_ticket_actions_level1_test.rb b/test/browser/agent_ticket_actions_level1_test.rb index 10602cedc..0ab026727 100644 --- a/test/browser/agent_ticket_actions_level1_test.rb +++ b/test/browser/agent_ticket_actions_level1_test.rb @@ -57,7 +57,7 @@ class AgentTicketActionLevel1Test < TestCase # merge tickets click( css: '.active div[data-tab="ticket"] .js-actions .icon-arrow-down' ) - click( css: '.active div[data-tab="ticket"] .js-actions a[data-type="ticket-merge"]' ) + click( css: '.active div[data-tab="ticket"] .js-actions [data-type="ticket-merge"]' ) watch_for( css: '.modal', value: 'merge', @@ -114,7 +114,7 @@ class AgentTicketActionLevel1Test < TestCase # merge tickets click( css: '.active div[data-tab="ticket"] .js-actions .icon-arrow-down' ) - click( css: '.active div[data-tab="ticket"] .js-actions a[data-type="ticket-merge"]' ) + click( css: '.active div[data-tab="ticket"] .js-actions [data-type="ticket-merge"]' ) watch_for( css: '.modal', value: 'merge', diff --git a/test/browser/agent_user_profile_test.rb b/test/browser/agent_user_profile_test.rb index 9eeb5662a..cbd1b4bba 100644 --- a/test/browser/agent_user_profile_test.rb +++ b/test/browser/agent_user_profile_test.rb @@ -37,7 +37,7 @@ class AgentUserProfileTest < TestCase # check and change note again in edit screen click( css: '.active .js-action .icon-arrow-down' ) - click( css: '.active .js-action a[data-type="edit"]' ) + click( css: '.active .js-action [data-type="edit"]' ) watch_for( css: '.active .modal', diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 6f22246a3..6cd080c16 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1185,7 +1185,7 @@ wait untill text in selector disabppears click( browser: instance, css: '.active .tabsSidebar-tab[data-tab="customer"]') click( browser: instance, css: '.active div[data-tab="customer"] .js-actions .icon-arrow-down' ) - click( browser: instance, css: '.active div[data-tab="customer"] .js-actions a[data-type="customer-change"]' ) + click( browser: instance, css: '.active div[data-tab="customer"] .js-actions [data-type="customer-change"]' ) watch_for( browser: instance, css: '.modal',