Skip to content

Commit 992da5e

Browse files
committed
Use stable selector in integration test
1 parent fecb4b3 commit 992da5e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests_integration/test_app.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ def test_qe_app_select_silicon_and_confirm(
2222

2323
driver.find_element(By.CLASS_NAME, "qe-app-step-ready") # ready on start
2424

25-
# Open structure selection step
25+
# Open structure selection step. The exact accordion DOM classes differ
26+
# between ipywidgets/Jupyter versions, but the rendered title is stable.
2627
element = WebDriverWait(driver, 60).until(
27-
EC.presence_of_element_located((By.CLASS_NAME, "p-Accordion-child"))
28+
EC.element_to_be_clickable(
29+
(By.XPATH, "//span[contains(.,'Step 1: Select structure')]")
30+
)
2831
)
2932
element.click()
3033
# check that element has CSS class

0 commit comments

Comments
 (0)