Improved tests.
This commit is contained in:
parent
77bab373c9
commit
55116a4a75
2 changed files with 11 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue