Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 7bb9dc7

Browse files
Use force=True for clicks to bypass nextjs-portal interception
Co-Authored-By: Alek Petuskey <alek@pynecone.io>
1 parent e914520 commit 7bb9dc7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/test_chaining_event.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ def test_handler_from_handler(
3131
run_button.scroll_into_view_if_needed()
3232
expect(run_button).to_be_visible()
3333

34-
run_button.click()
35-
36-
expect(chain_heading).to_have_text(re.compile(r"10"))
34+
run_button.click(force=True)
3735

3836
expect(chain_heading).to_have_text("10")
3937

@@ -49,8 +47,8 @@ def test_collatz(reflex_web_app: AppHarness, page: Page, chaining_event_url):
4947
collatz_input = collatz_box.get_by_role("textbox")
5048
collatz_input.fill("10")
5149

52-
collatz_input.blur()
50+
collatz_input.blur(force=True)
5351

5452
collatz_heading = page.locator('[id="collatz"] > .rt-Flex > span')
5553

56-
expect(collatz_heading).to_have_text(re.compile(r"1"))
54+
expect(collatz_heading).to_have_text("1")

0 commit comments

Comments
 (0)