Skip to content

Commit 5fc942e

Browse files
fix: adjust test for hybrid properties to upstream changes
1 parent 8290c86 commit 5fc942e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/integration/test_hybrid_properties.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def has_last_name(cls) -> Var[str]:
6060
def index() -> rx.Component:
6161
return rx.center(
6262
rx.vstack(
63-
rx.input(
63+
rx.el.input(
6464
id="token",
6565
value=State.router.session.client_token,
6666
is_read_only=True,
@@ -70,7 +70,7 @@ def index() -> rx.Component:
7070
),
7171
rx.text(f"full_name: {State.full_name}", id="full_name"),
7272
rx.text(f"has_last_name: {State.has_last_name}", id="has_last_name"),
73-
rx.input(
73+
rx.el.input(
7474
value=State.last_name,
7575
on_change=State.setvar("last_name"),
7676
id="set_last_name",
@@ -131,8 +131,9 @@ def token(hybrid_properties: AppHarness, driver: WebDriver) -> str:
131131
The token for the connected client
132132
"""
133133
assert hybrid_properties.app_instance is not None
134-
token_input = driver.find_element(By.ID, "token")
135-
assert token_input
134+
token_input = AppHarness.poll_for_or_raise_timeout(
135+
lambda: driver.find_element(By.ID, "token")
136+
)
136137

137138
# wait for the backend connection to send the token
138139
token = hybrid_properties.poll_for_value(token_input, timeout=DEFAULT_TIMEOUT * 2)

0 commit comments

Comments
 (0)