From 51fd2129068a928fadc9c95fb83de8dcb0603cf6 Mon Sep 17 00:00:00 2001 From: Ross Wollman Date: Tue, 28 Jun 2022 14:55:06 -0700 Subject: [PATCH] docs(test-runner): add a note re: fixture naming (#15203) --- docs/src/test-fixtures-js.md | 4 ++++ 1 file changed, 4 insertions(+) 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.