mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: fix typo for stylePath (#29034)
This commit is contained in:
parent
ee3960529e
commit
a217d6a08d
@ -98,7 +98,7 @@ import { test, expect } from '@playwright/test';
|
|||||||
|
|
||||||
test('example test', async ({ page }) => {
|
test('example test', async ({ page }) => {
|
||||||
await page.goto('https://playwright.dev');
|
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({
|
export default defineConfig({
|
||||||
expect: {
|
expect: {
|
||||||
toHaveScreenshot: {
|
toHaveScreenshot: {
|
||||||
styleFile: './screenshot.css'
|
stylePath: './screenshot.css'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user