Vasudeva Annam

Results 6 comments of Vasudeva Annam

Thank you for the kind words, @santanakrishnan! To achieve sharing a page across multiple tests, you can add the `shared-page-setup.ts` file to the framework under the `test-setup` folder. Then, in...

Hi @santanakrishnan, It is better to use storageState(https://playwright.dev/docs/auth) for the Login script. Use beforeAll in the spec file for something like data setup, DB connection or API calls for the...

If you move the setPage(sharedPage) to beforeAll, then it will give you access to the page in the spec file inside the beforeAll test as well. ```typescript import { Page,...

After making the above change in shared-page-setup.ts, you can start using beforeAll in the spec file, as the same page will be reused between tests including beforeAll in the spec...

@santanakrishnan Sorry for the late reply. I have added this spec file for you on how to use Storage State for your tests. Please update the necessary files like `playwright.config.ts`,...

Closing the issue as all the questions are resolved and answered. @santanakrishnan Please open up a new issue if you have any more questions or defects.