Skip to content

Commit bbbf24f

Browse files
committed
simplify test_simple_router not rely on _next_view_id.
1 parent 8e33895 commit bbbf24f

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

tests/test_router.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,10 @@ def sample():
4545

4646
await display.goto("/missing")
4747

48-
try:
49-
root_element = await display.root_element()
50-
except AttributeError:
51-
root_element = await display.page.wait_for_selector(
52-
f"#display-{display._next_view_id}", # type: ignore
53-
state="attached",
54-
)
48+
root_element = await display.page.wait_for_selector("#app", state="attached")
5549

5650
assert not await root_element.inner_html()
5751

58-
5952
async def test_nested_routes(display: DisplayFixture):
6053
@component
6154
def sample():

0 commit comments

Comments
 (0)