XRM-OSS/D365-UI-Test

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

Opened this issue · 1 comments

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 ?

@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