Improved tests.

This commit is contained in:
Martin Edenhofer 2016-03-23 00:12:50 +01:00
parent 77bab373c9
commit 55116a4a75
2 changed files with 11 additions and 4 deletions

View file

@ -39,7 +39,7 @@ class AgentTicketActionLevel7Test < TestCase
) )
# click reply # click reply
click( css: '.content.active [data-type="emailReply"]' ) click(css: '.content.active [data-type="emailReply"]')
# check body # check body
watch_for( watch_for(
@ -62,7 +62,7 @@ class AgentTicketActionLevel7Test < TestCase
) )
# click reply # click reply
click( css: '.content.active [data-type="emailReply"]' ) click(css: '.content.active [data-type="emailReply"]')
# check body # check body
watch_for( watch_for(
@ -71,5 +71,12 @@ class AgentTicketActionLevel7Test < TestCase
no_quote: true, no_quote: true,
) )
# check body
ticket_verify(
data: {
body: 'keep me',
},
)
end end
end end

View file

@ -413,7 +413,7 @@ class TestCase < Test::Unit::TestCase
js: "\$('#{params[:css]}').get(0).scrollIntoView(#{position})", js: "\$('#{params[:css]}').get(0).scrollIntoView(#{position})",
mute_log: params[:mute_log] mute_log: params[:mute_log]
) )
sleep 0.2 sleep 0.3
end end
=begin =begin
@ -1205,7 +1205,7 @@ wait untill text in selector disabppears
instance = params[:browser] || @browser instance = params[:browser] || @browser
(1..100).each do (1..100).each do
sleep 0.2 sleep 0.1
begin begin
if instance.find_elements(css: '.navigation .tasks .task:first-child')[0] if instance.find_elements(css: '.navigation .tasks .task:first-child')[0]
instance.mouse.move_to(instance.find_elements(css: '.navigation .tasks .task:first-child')[0]) instance.mouse.move_to(instance.find_elements(css: '.navigation .tasks .task:first-child')[0])