mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: update Worker-scoped fixtures code example (#13951)
This commit is contained in:
parent
058f32caff
commit
3ab0ecf143
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user