Skip to content

Commit 2ced5ca

Browse files
committed
Update test sleep time to allow pages to render before checking for expected components
1 parent 33c6075 commit 2ced5ca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_ui.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,34 @@ def test_component(page, port, ds):
1818
)
1919

2020
server = pn.serve(component.view, port=port, threaded=True, show=False)
21-
time.sleep(50)
21+
time.sleep(20)
2222
page.goto(url)
2323

2424
page.set_viewport_size({"width": 1920, "height": 1080})
2525

2626
page.get_by_role("button", name="Individuals & sets").click()
27-
time.sleep(20)
27+
time.sleep(10)
2828
expect(page.get_by_text("Geomap").nth(0)).to_be_visible()
2929
expect(page.get_by_text("Original population ID").nth(0)).to_be_visible()
3030
expect(page.get_by_text("Create new sample set").nth(0)).to_be_visible()
3131

3232
page.get_by_role("button", name="Structure").click()
33+
time.sleep(10)
3334
expect(page.get_by_text("GNN cluster plot").nth(0)).to_be_visible()
3435
expect(page.get_by_text("Structure").nth(0)).to_be_visible()
3536

3637
page.get_by_role("button", name="iGNN").click()
38+
time.sleep(10)
3739
expect(
3840
page.get_by_text("Sample sets table quick view").nth(0)
3941
).to_be_visible()
4042

4143
page.get_by_role("button", name="Statistics").click()
44+
time.sleep(10)
4245
expect(
4346
page.get_by_text("Oneway statistics plotting options").nth(0)
4447
).to_be_visible()
4548

4649
page.get_by_role("button", name="Trees").click()
50+
time.sleep(10)
4751
expect(page.get_by_text("Tree plotting options").nth(0)).to_be_visible()

0 commit comments

Comments
 (0)