Skip to content

Commit

Permalink
docs(test-runner): add a note re: fixture naming (#15203)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwoll committed Jun 28, 2022
1 parent 69273e4 commit 51fd212
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/test-fixtures-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ export const test = base.extend<MyFixtures>({
export { expect } from '@playwright/test';
```

:::note
Custom fixture names should start with a letter or underscore, and can contain only letters, numbers, underscores.
:::

## Using a fixture

Just mention fixture in your test function argument, and test runner will take care of it. Fixtures are also available in hooks and other fixtures. If you use TypeScript, fixtures will have the right type.
Expand Down

0 comments on commit 51fd212

Please sign in to comment.