From 7ea978a5138be932b5c0423db82ac1ce442b09be Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 6 Apr 2014 13:32:57 +0200 Subject: [PATCH] Improved test speed. --- test/browser/agent_ticket_actions_level1_test.rb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/test/browser/agent_ticket_actions_level1_test.rb b/test/browser/agent_ticket_actions_level1_test.rb index c582929a4..9b888c0e6 100644 --- a/test/browser/agent_ticket_actions_level1_test.rb +++ b/test/browser/agent_ticket_actions_level1_test.rb @@ -86,10 +86,9 @@ class AgentTicketActionLevel1Test < TestCase # check ticket { - :execute => 'match', - :css => '.content_permanent.active', + :execute => 'watch_for', + :area => '.content_permanent.active', :value => 'some body 123äöü 222', - :match_result => true, }, # update ticket @@ -113,14 +112,9 @@ class AgentTicketActionLevel1Test < TestCase :css => '.content_permanent.active button.submit', }, { - :execute => 'wait', - :value => 5, - }, - { - :execute => 'match', - :css => '.content_permanent.active .ticket-answer', + :execute => 'watch_for', + :area => '.content_permanent.active .ticket-answer', :value => 'some body 1234 äöüß 222', - :match_result => true, }, # check if task is shown