Skip to content

Commit 629c203

Browse files
Fix timing issue in JSON cookie test by adding poll_for_token call
- Add back poll_for_token() call before accessing DOM elements - Follows the same pattern as the existing working test - Ensures app is fully loaded before test execution Co-Authored-By: masen@reflex.dev <masen@reflex.dev>
1 parent 577de2d commit 629c203

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/test_client_storage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,8 @@ def set_sub(var: str, value: str):
818818
input_value_input.send_keys(value)
819819
set_sub_state_button.click()
820820

821+
token = poll_for_token()
822+
821823
# Get references to cookie elements
822824
c1 = driver.find_element(By.ID, "c1")
823825
c2 = driver.find_element(By.ID, "c2")

0 commit comments

Comments
 (0)