Skip to content

Commit 0084b56

Browse files
committed
minor test tweaks
1 parent 364e186 commit 0084b56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_router.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ def sample():
343343

344344
async def test_navigate_component_to_current_url(display: DisplayFixture):
345345
@component
346-
def navigate_btn(to: str, html_id: str, replace: bool = False):
346+
def navigate_btn(to: str, html_id: str):
347347
nav_url, set_nav_url = use_state("")
348348

349349
return html.button(
350350
{"onClick": lambda _: set_nav_url(to), "id": html_id},
351-
navigate(nav_url, replace) if nav_url else f"Navigate to {to}",
351+
navigate(nav_url) if nav_url else f"Navigate to {to}",
352352
)
353353

354354
@component
@@ -363,6 +363,7 @@ def sample():
363363
await _button.click(delay=CLICK_DELAY)
364364
_button = await display.page.wait_for_selector("#nav-a")
365365
await _button.click(delay=CLICK_DELAY)
366+
await asyncio.sleep(CLICK_DELAY / 1000)
366367
await display.page.wait_for_selector("#nav-a")
367368
await asyncio.sleep(CLICK_DELAY / 1000)
368369
await display.page.go_back()

0 commit comments

Comments
 (0)