From 8b18bfcad1800487c478dc71c43662d94c866f62 Mon Sep 17 00:00:00 2001 From: Daenam Kim Date: Fri, 2 Jun 2023 01:23:22 +0900 Subject: [PATCH] docs: fix imports in auth.md (#23430) While following instructions steps in the doc, I found some imports were different as I expected. Correct me if I am wrong. :) --- docs/src/auth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/auth.md b/docs/src/auth.md index 0308772181..b600ec21b3 100644 --- a/docs/src/auth.md +++ b/docs/src/auth.md @@ -497,7 +497,7 @@ You can introduce fixtures that will provide a page authenticated as each role. Below is an example that [creates fixtures](./test-fixtures.md#creating-a-fixture) for two [Page Object Models](./pom.md) - admin POM and user POM. It assumes `adminStorageState.json` and `userStorageState.json` files were created in the global setup. ```js title="playwright/fixtures.ts" -import { test as base, Page, Browser, Locator } from '@playwright/test'; +import { test as base, Page, Locator } from '@playwright/test'; // Page Object Model for the "admin" page. // Here you can add locators and helper methods specific to the admin page. @@ -555,7 +555,7 @@ export const test = base.extend({ ```js title="tests/example.spec.ts" // Import test with our new fixtures. -import { test, expect } from './fixtures'; +import { test, expect } from '../playwright/fixtures'; // Use adminPage and userPage fixtures in the test. test('admin and user', async ({ adminPage, userPage }) => {