Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(auth): Fix double use of `JSON.stringify` in Session storage example (#29554)
Jan Lelis3f46ba068004
diff --git a/docs/src/auth.md b/docs/src/auth.mdindex 6bfbf146d4..df03d89c60 100644--- a/docs/src/auth.md+++ b/docs/src/auth.md@@ -575,7 +575,7 @@ Reusing authenticated state covers [cookies](https://developer.mozilla.org/en-US```js// Get session storage and store as env variableconst sessionStorage = await page.evaluate(() => JSON.stringify(sessionStorage));-fs.writeFileSync('playwright/.auth/session.json', JSON.stringify(sessionStorage), 'utf-8');+fs.writeFileSync('playwright/.auth/session.json', sessionStorage, 'utf-8');// Set session storage in a new contextconst sessionStorage = JSON.parse(fs.readFileSync('playwright/.auth/session.json', 'utf-8'));