Moved to macros.

This commit is contained in:
Martin Edenhofer 2013-07-26 09:25:12 +02:00
parent a0fae9906c
commit 876fb78f88

View file

@ -156,12 +156,7 @@ class TaskbarTaskTest < TestCase
:value => 12, :value => 12,
}, },
{ {
:execute => 'click', :execute => 'logout',
:css => 'a[href="#current_user"]',
},
{
:execute => 'click',
:css => 'a[href="#logout"]',
}, },
{ {
:execute => 'check', :execute => 'check',
@ -178,18 +173,9 @@ class TaskbarTaskTest < TestCase
:name => 'relogin with master - task are not viewable', :name => 'relogin with master - task are not viewable',
:action => [ :action => [
{ {
:execute => 'set', :execute => 'login',
:css => 'input[name="username"]', :username => 'master@example.com',
:value => 'master@example.com', :password => 'test',
},
{
:execute => 'set',
:css => 'input[name="password"]',
:value => 'test'
},
{
:execute => 'click',
:css => '#login button',
}, },
{ {
:execute => 'wait', :execute => 'wait',
@ -208,12 +194,7 @@ class TaskbarTaskTest < TestCase
:match_result => false, :match_result => false,
}, },
{ {
:execute => 'click', :execute => 'logout',
:css => 'a[href="#current_user"]',
},
{
:execute => 'click',
:css => 'a[href="#logout"]',
}, },
{ {
:execute => 'check', :execute => 'check',
@ -238,22 +219,13 @@ class TaskbarTaskTest < TestCase
:name => 'relogin with agent - task are viewable', :name => 'relogin with agent - task are viewable',
:action => [ :action => [
{ {
:execute => 'set', :execute => 'login',
:css => 'input[name="username"]', :username => 'agent1@example.com',
:value => 'agent1@example.com', :password => 'test',
},
{
:execute => 'set',
:css => 'input[name="password"]',
:value => 'test'
},
{
:execute => 'click',
:css => '#login button',
}, },
{ {
:execute => 'wait', :execute => 'wait',
:value => 2, :value => 3,
}, },
{ {
:execute => 'match', :execute => 'match',