Skip to content

Commit

Permalink
warn about breakpoint in playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Dec 5, 2024
1 parent 5e82695 commit b0acca3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
from shiny.pytest import create_app_fixture


bp = "BREAKPOINT()".lower()
if bp in Path(__file__).read_text():
raise Exception(
f"Instead of `{bp}`, use `page.pause()` in playwright tests. "
"See https://playwright.dev/python/docs/debug#run-a-test-from-a-specific-breakpoint"
)


demo_app = create_app_fixture(Path(__file__).parent / "fixtures/demo_app.py")
default_app = create_app_fixture(Path(__file__).parent / "fixtures/default_app.py")
tooltip = "#choose_csv_demo_tooltip_ui svg"
Expand Down

0 comments on commit b0acca3

Please sign in to comment.