Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't close browser on fail or at the end of the test #44

Open
CyrilPERIE opened this issue May 3, 2022 · 1 comment
Open

Don't close browser on fail or at the end of the test #44

CyrilPERIE opened this issue May 3, 2022 · 1 comment

Comments

@CyrilPERIE
Copy link

Hi,

First of all,thanks for your great job.

I want to create a test suite using D365 to run on a Dynamcis app.
I need my browser to be alive if any error occurs in my script to check from where come my problem (i can use page.pause() for that)
But in my CI I don't want to login again between each test (it take too much time considering the number of time i have)

Is there a way to avoid browser to close on fail (i know page.pause() exists) or when a test ends ?

@imartinflores
Copy link
Contributor

@CyrilPERIE If I am not wrong, it is Playwright default behaviour to close the browser on a failure. You can use soft assertions or save the storageState for your login data and re use it in your tests.
https://playwright.dev/docs/auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants