Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jun 19, 2024
1 parent 3588b54 commit aac2b36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/async/test_browsercontext_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ async def test_dialog_event_should_work_in_popup(page: Page) -> None:

async def open_dialog() -> None:
nonlocal prompt_task

prompt_task = asyncio.create_task(
page.evaluate("() => window.open('').prompt('hey?')")
)
prompt_task = asyncio.create_task(
page.evaluate("() => window.open('').prompt('hey?')")
)

[dialog, popup, _] = await asyncio.gather(
page.context.wait_for_event("dialog"),
Expand Down

0 comments on commit aac2b36

Please sign in to comment.