From 876fb78f8842ccd3e3417ca4a07b74cb0872d007 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 26 Jul 2013 09:25:12 +0200 Subject: [PATCH] Moved to macros. --- test/browser/taskbar_task_test.rb | 46 ++++++------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) diff --git a/test/browser/taskbar_task_test.rb b/test/browser/taskbar_task_test.rb index da6c082f5..33a56097c 100644 --- a/test/browser/taskbar_task_test.rb +++ b/test/browser/taskbar_task_test.rb @@ -156,12 +156,7 @@ class TaskbarTaskTest < TestCase :value => 12, }, { - :execute => 'click', - :css => 'a[href="#current_user"]', - }, - { - :execute => 'click', - :css => 'a[href="#logout"]', + :execute => 'logout', }, { :execute => 'check', @@ -178,18 +173,9 @@ class TaskbarTaskTest < TestCase :name => 'relogin with master - task are not viewable', :action => [ { - :execute => 'set', - :css => 'input[name="username"]', - :value => 'master@example.com', - }, - { - :execute => 'set', - :css => 'input[name="password"]', - :value => 'test' - }, - { - :execute => 'click', - :css => '#login button', + :execute => 'login', + :username => 'master@example.com', + :password => 'test', }, { :execute => 'wait', @@ -208,12 +194,7 @@ class TaskbarTaskTest < TestCase :match_result => false, }, { - :execute => 'click', - :css => 'a[href="#current_user"]', - }, - { - :execute => 'click', - :css => 'a[href="#logout"]', + :execute => 'logout', }, { :execute => 'check', @@ -238,22 +219,13 @@ class TaskbarTaskTest < TestCase :name => 'relogin with agent - task are viewable', :action => [ { - :execute => 'set', - :css => 'input[name="username"]', - :value => 'agent1@example.com', - }, - { - :execute => 'set', - :css => 'input[name="password"]', - :value => 'test' - }, - { - :execute => 'click', - :css => '#login button', + :execute => 'login', + :username => 'agent1@example.com', + :password => 'test', }, { :execute => 'wait', - :value => 2, + :value => 3, }, { :execute => 'match',