Fixed browser test.

This commit is contained in:
Martin Edenhofer 2015-11-27 15:47:56 +01:00
parent 8115226bcf
commit 73fdb77178
2 changed files with 26 additions and 17 deletions

View file

@ -45,6 +45,7 @@ class AgentTicketActionLevel0Test < TestCase
) )
sendkey( sendkey(
value: :arrow_down, value: :arrow_down,
slow: true,
) )
click( css: '.active .shortcut > ul> li > a' ) click( css: '.active .shortcut > ul> li > a' )
@ -130,6 +131,7 @@ class AgentTicketActionLevel0Test < TestCase
sendkey( sendkey(
browser: browser2, browser: browser2,
value: :arrow_down, value: :arrow_down,
slow: true,
) )
click( click(
browser: browser2, browser: browser2,
@ -167,6 +169,7 @@ class AgentTicketActionLevel0Test < TestCase
sendkey( sendkey(
browser: browser2, browser: browser2,
value: :arrow_down, value: :arrow_down,
slow: true,
) )
click( click(
browser: browser2, browser: browser2,
@ -210,6 +213,7 @@ class AgentTicketActionLevel0Test < TestCase
sendkey( sendkey(
browser: browser2, browser: browser2,
value: :arrow_down, value: :arrow_down,
slow: true,
) )
click( click(

View file

@ -361,13 +361,13 @@ class TestCase < Test::Unit::TestCase
=begin =begin
set( set(
:browser => browser1, browser: browser1,
:css => '.some_class', css: '.some_class',
:value => true, value: true,
:slow => false, slow: false,
:blur => true, blur: true,
:clear => true, # todo | default: true clear: true, # todo | default: true
:contenteditable => true contenteditable: true
) )
=end =end
@ -417,9 +417,9 @@ class TestCase < Test::Unit::TestCase
=begin =begin
select( select(
:browser => browser1, browser: browser1,
:css => '.some_class', css: '.some_class',
:value => 'Some Value', value: 'Some Value',
) )
=end =end
@ -446,8 +446,8 @@ class TestCase < Test::Unit::TestCase
=begin =begin
check( check(
:browser => browser1, browser: browser1,
:css => '.some_class', css: '.some_class',
) )
=end =end
@ -465,8 +465,8 @@ class TestCase < Test::Unit::TestCase
=begin =begin
uncheck( uncheck(
:browser => browser1, browser: browser1,
:css => '.some_class', css: '.some_class',
) )
=end =end
@ -484,8 +484,9 @@ class TestCase < Test::Unit::TestCase
=begin =begin
sendkey( sendkey(
:browser => browser1, browser: browser1,
:value => :enter, value: :enter,
slow: false,
) )
=end =end
@ -501,7 +502,11 @@ class TestCase < Test::Unit::TestCase
return return
end end
instance.action.send_keys(params[:value]).perform instance.action.send_keys(params[:value]).perform
sleep 0.5 if params[:slow]
sleep 1
else
sleep 0.6
end
end end
=begin =begin