Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: update Worker-scoped fixtures code example (#13951)

hirohe3ab0ecf14317
diff --git a/docs/src/test-fixtures-js.md b/docs/src/test-fixtures-js.md
index 7719eb8e1a..0125a75a98 100644
--- a/docs/src/test-fixtures-js.md
+++ b/docs/src/test-fixtures-js.md
@@ -348,6 +348,7 @@ exports.test = base.test.extend({
page: async ({ page, account }, use) => {
// Sign in with our account.
+ const { username, password } = account;
await page.goto('/signin');
await page.locator('#username').fill(username);
await page.locator('#password').fill(password);
@@ -394,6 +395,7 @@ export const test = base.extend<{}, { account: Account }>({
page: async ({ page, account }, use) => {
// Sign in with our account.
+ const { username, password } = account;
await page.goto('/signin');
await page.locator('#username').fill(username);
await page.locator('#password').fill(password);