From f2d840de219a8d2ab70b9811652ff0c936338323 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Mon, 11 Apr 2022 07:29:51 +0000 Subject: [PATCH] fix: downstream ci --- tests/test_qe_app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_qe_app.py b/tests/test_qe_app.py index 18dca45f4..bc34ca7d1 100755 --- a/tests/test_qe_app.py +++ b/tests/test_qe_app.py @@ -16,11 +16,11 @@ def test_qe_app_select_silicon(selenium, url): selenium.set_window_size(1920, 985) time.sleep(10) selenium.find_element( - By.CSS_SELECTOR, ".p-TabBar-tab:nth-child(6) > .p-TabBar-tabLabel" - ).click() - selenium.find_element(By.XPATH, "//option[@value='Silicon']").click() - selenium.get_screenshot_as_file("screenshots/qe-app-select-silicon-selected.png") + By.XPATH, '//li[@id="tab-key-17" and @class="lm-TabBar-tab p-TabBar-tab"]' + ).click() # click `From Examples` for input structure + selenium.find_element(By.XPATH, "//option[@value='Diamond']").click() + selenium.get_screenshot_as_file("screenshots/qe-app-select-diamond-selected.png") confirm_button = selenium.find_element(By.XPATH, "//button[contains(.,'Confirm')]") confirm_button.location_once_scrolled_into_view # scroll into view confirm_button.click() - selenium.get_screenshot_as_file("screenshots/qe-app-select-silicon-confirmed.png") + selenium.get_screenshot_as_file("screenshots/qe-app-diamond-silicon-confirmed.png")