Improved tests.
This commit is contained in:
parent
77bab373c9
commit
55116a4a75
2 changed files with 11 additions and 4 deletions
|
@ -39,7 +39,7 @@ class AgentTicketActionLevel7Test < TestCase
|
|||
)
|
||||
|
||||
# click reply
|
||||
click( css: '.content.active [data-type="emailReply"]' )
|
||||
click(css: '.content.active [data-type="emailReply"]')
|
||||
|
||||
# check body
|
||||
watch_for(
|
||||
|
@ -62,7 +62,7 @@ class AgentTicketActionLevel7Test < TestCase
|
|||
)
|
||||
|
||||
# click reply
|
||||
click( css: '.content.active [data-type="emailReply"]' )
|
||||
click(css: '.content.active [data-type="emailReply"]')
|
||||
|
||||
# check body
|
||||
watch_for(
|
||||
|
@ -71,5 +71,12 @@ class AgentTicketActionLevel7Test < TestCase
|
|||
no_quote: true,
|
||||
)
|
||||
|
||||
# check body
|
||||
ticket_verify(
|
||||
data: {
|
||||
body: 'keep me',
|
||||
},
|
||||
)
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -413,7 +413,7 @@ class TestCase < Test::Unit::TestCase
|
|||
js: "\$('#{params[:css]}').get(0).scrollIntoView(#{position})",
|
||||
mute_log: params[:mute_log]
|
||||
)
|
||||
sleep 0.2
|
||||
sleep 0.3
|
||||
end
|
||||
|
||||
=begin
|
||||
|
@ -1205,7 +1205,7 @@ wait untill text in selector disabppears
|
|||
instance = params[:browser] || @browser
|
||||
|
||||
(1..100).each do
|
||||
sleep 0.2
|
||||
sleep 0.1
|
||||
begin
|
||||
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])
|
||||
|
|
Loading…
Reference in a new issue