Unverified Commit a32b3dde authored by Steven's avatar Steven Committed by GitHub

Fix test template example (#44170)

- Fixes typo from #44147 

`getElementByCss` => `elementByCss`
parent e27a7bd7
...@@ -15,7 +15,7 @@ createNextDescribe( ...@@ -15,7 +15,7 @@ createNextDescribe(
// Recommended for tests that need a full browser // Recommended for tests that need a full browser
it('should work using browser', async () => { it('should work using browser', async () => {
const browser = await next.browser('/') 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. // In case you need the full HTML. Can also use $.html() with cheerio.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment