From a32b3dde51113cf320e73682a234fbfe34479185 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 19 Dec 2022 19:31:28 -0500 Subject: [PATCH] Fix test template example (#44170) - Fixes typo from #44147 `getElementByCss` => `elementByCss` --- test/e2e/example.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/example.txt b/test/e2e/example.txt index 6bfc336349da83b..0a499e245c9818d 100644 --- a/test/e2e/example.txt +++ b/test/e2e/example.txt @@ -15,7 +15,7 @@ createNextDescribe( // Recommended for tests that need a full browser it('should work using browser', async () => { const browser = await next.browser('/') - expect(await browser.getElementByCss('p').text()).toBe('hello world') + expect(await browser.elementByCss('p').text()).toBe('hello world') }) // In case you need the full HTML. Can also use $.html() with cheerio.