Relative Content

Tag Archive for javascriptbasic-authenticationplaywright

Basic auth not being stored in storageState

I’m setting up a playwright project and trying to store Basic auth for reusability in my tests using dependencies.
The setup always passes, yet the example spec fails with the error page.goto: net::ERR_INVALID_AUTH_CREDENTIALS at https://the-internet.herokuapp.com/basic_auth
My config file:

Playwright – Basic auth not being stored in storageState

So im setting up a playwright project and trying to store Basic auth for reusability in my tests using dependencies.
The setup always passes, yet the example spec fails with the error page.goto: net::ERR_INVALID_AUTH_CREDENTIALS at https://the-internet.herokuapp.com/basic_auth
My config file: