Skip to content

Commit

Permalink
cherry-pick(#29034): docs: fix typo for stylePath (#29035)
Browse files Browse the repository at this point in the history
This PR cherry-picks the following commits:

- a217d6a

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
playwrightmachine and github-actions[bot] authored Jan 18, 2024
1 parent ece2a97 commit 4d9f923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/test-snapshots-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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') });
});
```

Expand All @@ -109,7 +109,7 @@ import { defineConfig } from '@playwright/test';
export default defineConfig({
expect: {
toHaveScreenshot: {
styleFile: './screenshot.css'
stylePath: './screenshot.css'
},
},
});
Expand Down

0 comments on commit 4d9f923

Please sign in to comment.