Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlensky authored Nov 24, 2024
2 parents c9d37c0 1f291df commit b5970d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 14,13 @@
NEXT_TEST_EVENT = Event()


@pytest.fixture
async def browser() -> AsyncGenerator[zd.Browser, None]:
@pytest.fixture(params=[{"headless": True}, {"headless": False}])
async def browser(request: pytest.FixtureRequest) -> AsyncGenerator[zd.Browser, None]:
NEXT_TEST_EVENT.clear()
browser = await zd.start(
# use wayland for rendering instead of default X11 backend
browser_args=["--enable-features=UseOzonePlatform", "--ozone-platform=wayland"],
headless=request.param["headless"],
)
browser_pid = browser._process_pid
assert browser_pid is not None and browser_pid > 0
Expand Down

0 comments on commit b5970d6

Please sign in to comment.