Maintenance: Make browser tests more robust by waiting for search to stop loading.
This commit is contained in:
parent
208c0b0211
commit
090fcb5408
1 changed files with 6 additions and 0 deletions
|
@ -2891,6 +2891,12 @@ wait untill text in selector disabppears
|
||||||
element.clear
|
element.clear
|
||||||
element.send_keys(params[:value])
|
element.send_keys(params[:value])
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
|
watch_for_disappear(
|
||||||
|
browser: instance,
|
||||||
|
css: '.navigation .search.loading'
|
||||||
|
)
|
||||||
|
|
||||||
#instance.find_element(partial_link_text: params[:value] } ).click
|
#instance.find_element(partial_link_text: params[:value] } ).click
|
||||||
instance.execute_script("$(\".js-global-search-result a:contains('#{params[:value]}') .nav-tab-name\").first().click()")
|
instance.execute_script("$(\".js-global-search-result a:contains('#{params[:value]}') .nav-tab-name\").first().click()")
|
||||||
watch_for(
|
watch_for(
|
||||||
|
|
Loading…
Reference in a new issue