From 23dd07a8f3cb1f24ff9a51de9c859e14491c326e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Plantier?= Date: Wed, 23 Feb 2022 15:08:29 +0100 Subject: [PATCH] Fix typo in Puppeteer Testing Library doc --- docs/pptr-testing-library/intro.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pptr-testing-library/intro.mdx b/docs/pptr-testing-library/intro.mdx index 5fb00bbb2..42bfe14b2 100644 --- a/docs/pptr-testing-library/intro.mdx +++ b/docs/pptr-testing-library/intro.mdx @@ -49,7 +49,7 @@ const page = await browser.newPage() const $document = await page.getDocument() // query methods are added directly to prototype of ElementHandle const $form = await $document.getByTestId('my-form') -// destructing works if you explicitly call getQueriesForElement +// destructuring works if you explicitly call getQueriesForElement const {getByLabelText} = $form.getQueriesForElement() // ... const $email = await getByLabelText('Email')