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

This commit is contained in:
hirohe 2022-05-06 02:27:53 +08:00 committed by GitHub
parent 058f32caff
commit 3ab0ecf143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);