Improved code layout.
This commit is contained in:
parent
f78b32639f
commit
e9da83bf4d
2 changed files with 9 additions and 9 deletions
|
@ -28,24 +28,24 @@ class AgentTicketOverviewLevel1Test < TestCase
|
||||||
overview_create(
|
overview_create(
|
||||||
browser: browser1,
|
browser: browser1,
|
||||||
data: {
|
data: {
|
||||||
:name => name1,
|
name: name1,
|
||||||
:role => 'Agent',
|
role: 'Agent',
|
||||||
:selector => {
|
selector: {
|
||||||
'Priority' => '1 low',
|
'Priority' => '1 low',
|
||||||
},
|
},
|
||||||
:prio => 1000,
|
prio: 1000,
|
||||||
'order::direction' => 'down',
|
'order::direction' => 'down',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
overview_create(
|
overview_create(
|
||||||
browser: browser1,
|
browser: browser1,
|
||||||
data: {
|
data: {
|
||||||
:name => name2,
|
name: name2,
|
||||||
:role => 'Agent',
|
role: 'Agent',
|
||||||
:selector => {
|
selector: {
|
||||||
'Priority' => '3 high',
|
'Priority' => '3 high',
|
||||||
},
|
},
|
||||||
:prio => 1001,
|
prio: 1001,
|
||||||
'order::direction' => 'down',
|
'order::direction' => 'down',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -138,7 +138,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
instance.find_elements( { css: '#login button' } )[0].click
|
instance.find_elements( { css: '#login button' } )[0].click
|
||||||
|
|
||||||
sleep 4
|
sleep 5
|
||||||
login = instance.find_elements( { css: '.user-menu .user a' } )[0].attribute('title')
|
login = instance.find_elements( { css: '.user-menu .user a' } )[0].attribute('title')
|
||||||
if login != params[:username]
|
if login != params[:username]
|
||||||
screenshot( browser: instance, comment: 'login_failed' )
|
screenshot( browser: instance, comment: 'login_failed' )
|
||||||
|
|
Loading…
Reference in a new issue