TypeError: jestPlaywright.resetBrowser is not a function
See original GitHub issueI am trying to close and reopen the browser for each test(it) inside a describe.
This is my beforeEach
beforeEach(async () => {
await jestPlaywright.resetBrowser();
});
and inside each test(it), I have a page.goto(url)
but I get this is below error.
TypeError: jestPlaywright.resetBrowser is not a function
11 |
12 | beforeEach(async () => {
> 13 | await jestPlaywright.resetBrowser();
| ^
14 | });
I have tried jestPlaywright.resetPage() and jestPlaywright.resetContext() as well, but still the same issue. Could guys let me know if I am missing something?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Not Able to Use jest-playwright-preset in Playwright Docker ...
The jest-playwright-preset package, when used in a playwright docker container, leads to TypeError: Class extends value #<Object> is not a constructor or ...
Read more >Using Jest with Playwright
In this blog post, we'll compare two Jest setups for creating and running end-to-end tests with Playwright.
Read more >PlayWright - TypeError: browser.newPage is not a function
When ever I am trying to run the code I am getting error "TypeError: browser.newPage is not a function". Here is my code...
Read more >Testing with Playwright - CodeceptJS
Playwright is a Node library to automate the Chromium (opens new window), WebKit (opens new window) and Firefox (opens new window) browsers as ......
Read more >Authentication | Playwright - CukeTest
Playwright can be used to automate scenarios that require authentication. ... we will reuse existing authentication state in new browser contexts.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks! @mxschmitt @mmarkelov , Works after upgrading to latest versions. my bad, should have read the docs!
@NareshMurthy this helpers functions were added in 1.2.0