diff --git a/docs/src/test-fixtures-js.md b/docs/src/test-fixtures-js.md index b0259b4a0a..5cd4cb6ae0 100644 --- a/docs/src/test-fixtures-js.md +++ b/docs/src/test-fixtures-js.md @@ -219,6 +219,10 @@ export const test = base.extend({ 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.