Fixed ff issues.
This commit is contained in:
parent
a5b33a0e32
commit
d467605763
1 changed files with 31 additions and 18 deletions
|
@ -502,7 +502,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
|
|
||||||
modal_disappear(
|
modal_disappear(
|
||||||
browser: browser1,
|
browser: browser1,
|
||||||
timeout: 12, # default 6
|
timeout: 12, # default 8
|
||||||
)
|
)
|
||||||
|
|
||||||
=end
|
=end
|
||||||
|
@ -516,7 +516,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
watch_for_disappear(
|
watch_for_disappear(
|
||||||
browser: instance,
|
browser: instance,
|
||||||
css: '.modal',
|
css: '.modal',
|
||||||
timeout: params[:timeout] || 6,
|
timeout: params[:timeout] || 8,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2573,7 +2573,10 @@ wait untill text in selector disabppears
|
||||||
css: '.modal input[name=role_ids][value=3]',
|
css: '.modal input[name=role_ids][value=3]',
|
||||||
)
|
)
|
||||||
instance.find_elements(css: '.modal button.js-submit')[0].click
|
instance.find_elements(css: '.modal button.js-submit')[0].click
|
||||||
modal_disappear(browser: instance)
|
modal_disappear(
|
||||||
|
browser: instance,
|
||||||
|
timeout: 10,
|
||||||
|
)
|
||||||
set(
|
set(
|
||||||
browser: instance,
|
browser: instance,
|
||||||
css: '.content .js-search',
|
css: '.content .js-search',
|
||||||
|
@ -2681,15 +2684,21 @@ wait untill text in selector disabppears
|
||||||
mute_log: true,
|
mute_log: true,
|
||||||
)
|
)
|
||||||
modal_ready(browser: instance)
|
modal_ready(browser: instance)
|
||||||
element = instance.find_elements(css: '.modal input[name=name]')[0]
|
set(
|
||||||
element.clear
|
browser: instance,
|
||||||
element.send_keys(data[:name])
|
css: '.modal input[name=name]',
|
||||||
element = instance.find_elements(css: '.modal input[name=keywords]')[0]
|
value: data[:name],
|
||||||
element.clear
|
)
|
||||||
element.send_keys(data[:keywords])
|
set(
|
||||||
element = instance.find_elements(css: '.modal [data-name=content]')[0]
|
browser: instance,
|
||||||
element.clear
|
css: '.modal input[name=keywords]',
|
||||||
element.send_keys(data[:content])
|
value: data[:keywords],
|
||||||
|
)
|
||||||
|
set(
|
||||||
|
browser: instance,
|
||||||
|
css: '.modal [data-name=content]',
|
||||||
|
value: data[:content],
|
||||||
|
)
|
||||||
instance.find_elements(css: '.modal button.js-submit')[0].click
|
instance.find_elements(css: '.modal button.js-submit')[0].click
|
||||||
modal_disappear(browser: instance)
|
modal_disappear(browser: instance)
|
||||||
7.times {
|
7.times {
|
||||||
|
@ -2747,12 +2756,16 @@ wait untill text in selector disabppears
|
||||||
mute_log: true,
|
mute_log: true,
|
||||||
)
|
)
|
||||||
modal_ready(browser: instance)
|
modal_ready(browser: instance)
|
||||||
element = instance.find_elements(css: '.modal input[name=name]')[0]
|
set(
|
||||||
element.clear
|
browser: instance,
|
||||||
element.send_keys(data[:name])
|
css: '.modal input[name=name]',
|
||||||
element = instance.find_elements(css: '.modal [data-name=body]')[0]
|
value: data[:name],
|
||||||
element.clear
|
)
|
||||||
element.send_keys(data[:body])
|
set(
|
||||||
|
browser: instance,
|
||||||
|
css: '.modal [data-name=body]',
|
||||||
|
value: data[:body],
|
||||||
|
)
|
||||||
instance.find_elements(css: '.modal button.js-submit')[0].click
|
instance.find_elements(css: '.modal button.js-submit')[0].click
|
||||||
modal_disappear(browser: instance)
|
modal_disappear(browser: instance)
|
||||||
11.times {
|
11.times {
|
||||||
|
|
Loading…
Reference in a new issue