From 983dc703e4c1606087ef5cc413994cb1566a01bb Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 7 Apr 2014 08:50:47 +0200 Subject: [PATCH] Improved tests. --- .../agent_ticket_actions_level2_test.rb | 28 ---------------- .../agent_ticket_actions_level3_test.rb | 32 +++---------------- 2 files changed, 4 insertions(+), 56 deletions(-) diff --git a/test/browser/agent_ticket_actions_level2_test.rb b/test/browser/agent_ticket_actions_level2_test.rb index 2b4096fa1..ad2fb597f 100644 --- a/test/browser/agent_ticket_actions_level2_test.rb +++ b/test/browser/agent_ticket_actions_level2_test.rb @@ -69,34 +69,6 @@ class AgentTicketActionsLevel2Test < TestCase :link => '###stack###', # :css => 'a:contains(\'###stack###\')', }, - { - :execute => 'wait', - :value => 1, - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").val("")', - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").focus()', - }, - { - :execute => 'wait', - :value => 1, - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").blur()', - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").parent().parent().removeClass("open")', - }, { :execute => 'wait', :value => 3, diff --git a/test/browser/agent_ticket_actions_level3_test.rb b/test/browser/agent_ticket_actions_level3_test.rb index 572c82777..d5527211f 100644 --- a/test/browser/agent_ticket_actions_level3_test.rb +++ b/test/browser/agent_ticket_actions_level3_test.rb @@ -53,6 +53,10 @@ class AgentTicketActionsLevel3Test < TestCase }, # open ticket in second browser + { + :execute => 'wait', + :value => 1, + }, { :where => :instance2, :execute => 'set', @@ -69,34 +73,6 @@ class AgentTicketActionsLevel3Test < TestCase :link => '###stack###', # :css => 'a:contains(\'###stack###\')', }, - { - :execute => 'wait', - :value => 1, - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").val("")', - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").focus()', - }, - { - :execute => 'wait', - :value => 1, - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").blur()', - }, - { - :where => :instance2, - :execute => 'js', - :value => '$("#global-search").parent().parent().removeClass("open")', - }, { :execute => 'wait', :value => 3,