Skip to content

Commit

Permalink
fix for web (openshift#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanpzhan authored Feb 15, 2022
1 parent 4b4233f commit b531e59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/rules/web/admin_console/4.10/dashboards.xyaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ check_grafana_dashboard_body_loaded:
element:
selector:
xpath: //div[contains(@class,'co-dashboard-body')]//*[contains(@class,'monitoring-dashboards')]
timeout: 30
timeout: 90
click_dashboard_dropdown:
element:
selector:
Expand Down Expand Up @@ -131,7 +131,7 @@ check_chart_loaded:
elements:
- selector:
xpath: //div[contains(@class,'pf-c-chart')]
timeout: 40
timeout: 90
change_namespace:
params:
label_text: namespace
Expand Down
9 changes: 4 additions & 5 deletions lib/rules/web/admin_console/4.10/operator_hub.xyaml
Original file line number Diff line number Diff line change
Expand Up @@ -528,14 +528,13 @@ check_default_view_is_form_view:
element:
selector:
xpath: //input[@type='radio' and @value='form' and @checked]
open_edit_form_view:
elements:
- selector:
xpath: //label[contains(.,'Form view')]//input
op: click
open_edit_form_view: {}
switch_to_yaml_view:
params:
radio_text: yaml
scripts:
- command: return document.querySelector("input[value=yaml]").scrollIntoView(false)
expect_result: ~
action: click_radio_input
action: wait_box_loaded
element:
Expand Down
4 changes: 2 additions & 2 deletions lib/webauto/web4cucumber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ def browser
# options.add_extension proxy_chrome_ext_file if proxy_chrome_ext_file
options[:extensions] = [proxy_chrome_ext_file] if proxy_chrome_ext_file
if @selenium_url
@browser = Watir::Browser.new :chrome, options: options, url: @selenium_url
@browser = Watir::Browser.new :chrome, :http_client=>client, options: options, url: @selenium_url
else
options["goog:chromeOptions"][:switches] = chrome_switches
@browser = Watir::Browser.new :chrome, options: options
@browser = Watir::Browser.new :chrome, :http_client=>client, options: options
end
logger.info "#{browser.driver.capabilities[:browser_name]} version is #{browser.driver.capabilities[:browser_version]}"
logger.info "Chromedriver version is #{browser.driver.capabilities['chrome']['chromedriverVersion']}"
Expand Down

0 comments on commit b531e59

Please sign in to comment.