From e2b5fc4f88ca7a1ad6db91d2d658ee687cc658f0 Mon Sep 17 00:00:00 2001 From: Justin Kat <601027+Jkat@users.noreply.github.com> Date: Tue, 4 Oct 2022 06:18:01 -0400 Subject: [PATCH] docs(chrome-extensions): update test fixture grammar (#17770) --- docs/src/chrome-extensions-js-python.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/chrome-extensions-js-python.md b/docs/src/chrome-extensions-js-python.md index 322053d1fc..3c8af1bcd1 100644 --- a/docs/src/chrome-extensions-js-python.md +++ b/docs/src/chrome-extensions-js-python.md @@ -97,7 +97,7 @@ with sync_playwright() as playwright: ## Testing -To have the extension loaded when running tests you can use a test fixture to set the context. You can also dynamically retrieve the extension id and use it that to load and test the popup page for example. +To have the extension loaded when running tests you can use a test fixture to set the context. You can also dynamically retrieve the extension id and use it to load and test the popup page for example. ```ts import { test as base, expect, BrowserContext } from "@playwright/test"; @@ -201,4 +201,4 @@ def test_example_test(page: Page) -> None: def test_popup_page(page: Page, extension_id: str) -> None: page.goto(f"chrome-extension://{extension_id}/popup.html") expect(page.locator("body")).to_have_text("my-extension popup") -``` \ No newline at end of file +```