From 4d9f923dfef9fe05560170e508c459844fafde78 Mon Sep 17 00:00:00 2001 From: Playwright Service <89237858+playwrightmachine@users.noreply.github.com> Date: Thu, 18 Jan 2024 01:06:32 -0800 Subject: [PATCH] cherry-pick(#29034): docs: fix typo for stylePath (#29035) This PR cherry-picks the following commits: - a217d6a08d60e484177f2299293c1a52931ae7d3 Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- docs/src/test-snapshots-js.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.md index 41f855dde3a94..a6e5b986361b8 100644 --- a/docs/src/test-snapshots-js.md +++ b/docs/src/test-snapshots-js.md @@ -98,7 +98,7 @@ import { test, expect } from '@playwright/test'; test('example test', async ({ page }) => { await page.goto('https://playwright.dev'); - await expect(page).toHaveScreenshot({ styleFile: path.join(__dirname, 'screenshot.css') }); + await expect(page).toHaveScreenshot({ stylePath: path.join(__dirname, 'screenshot.css') }); }); ``` @@ -109,7 +109,7 @@ import { defineConfig } from '@playwright/test'; export default defineConfig({ expect: { toHaveScreenshot: { - styleFile: './screenshot.css' + stylePath: './screenshot.css' }, }, });