Skip to content

Commit 37fc156

Browse files
authored
fix: use png screenshot type after Playwright v1.55.0 alignment (#290)
1 parent 48e68b7 commit 37fc156

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pytest-playwright-asyncio/pytest_playwright_asyncio/pytest_playwright.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ async def on_will_close_browser_context(self, context: BrowserContext) -> None:
600600
await page.screenshot(
601601
timeout=5000,
602602
path=screenshot_path,
603+
type="png",
603604
full_page=self._pytestconfig.getoption(
604605
"--full-page-screenshot"
605606
),

pytest-playwright/pytest_playwright/pytest_playwright.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ def on_will_close_browser_context(self, context: BrowserContext) -> None:
595595
page.screenshot(
596596
timeout=5000,
597597
path=screenshot_path,
598+
type="png",
598599
full_page=self._pytestconfig.getoption(
599600
"--full-page-screenshot"
600601
),

0 commit comments

Comments
 (0)