From a217d6a08d60e484177f2299293c1a52931ae7d3 Mon Sep 17 00:00:00 2001 From: romanimm Date: Thu, 18 Jan 2024 09:59:31 +0100 Subject: [PATCH] docs: fix typo for stylePath (#29034) --- 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 41f855dde3..a6e5b98636 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' }, }, });