Relative Content

Tag Archive for javascriptplaywright

Playwright API fixture gets timeout

I am trying to implement a fixtures helper file in Playwright so that certain data setup commands used by many tests can be better maintained v having all of these in every test spec that needs to create the same data. The same api call is working when placed within a test; however, when using it within a beforeEach hook, the POST call is made & gets a 200, but the test gets a timeout running the beforeEach hook. The POST is taking < 1s & I’ve set a timeout to 60s. I think I am having issues with the return in my fixture file. Not finding a ton of guidance. Would anyone be able to help identify where I’ve gone astray? Thanks for any assistance.

Why Playwright is not taking screenshot?

Why is the Playwright not taking screenshots? I’m trying to take a screenshot of the MongoDB login website but it’s not taking screenshots and giving timeout errors.