Skip to content

Commit

Permalink
Fix test template example (#44170)
Browse files Browse the repository at this point in the history
- Fixes typo from #44147 

`getElementByCss` => `elementByCss`
  • Loading branch information
styfle committed Dec 20, 2022
1 parent e27a7bd commit a32b3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/example.txt
Expand Up @@ -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.
Expand Down

0 comments on commit a32b3dd

Please sign in to comment.