Closed xyngfei closed 1 year ago
As stated in the error message, you error is that the { page }
fixture is used in afterAll
. Each test has its own page
, so you don't need to close it after all. afterAll
can't have any pages, because it runs after all tests.
If you are looking for a serial mode where the page is reused (anti-pattern), you should copy the example from https://playwright.dev/docs/next/test-retries#reuse-single-page-between-tests. Notice that page
fixture is not used there.
Closing as per above, please feel free to open a new issue if this does not cover your use case.
System info
Source code
or
Test file (self-contained)
Steps
Expected
It should skip the test without any issue
Actual