Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions

Jump to navigation Jump to search
m
Line 1,364: Line 1,364:


Delete the login steps from <code>test.beforeEach(...)</code>, but leave the <code>page.goto(...)</code>
Delete the login steps from <code>test.beforeEach(...)</code>, but leave the <code>page.goto(...)</code>
Notes:
* this all seems a little spooky, I'd prefer something in a beforeXXX(...) hook that saves something that is recalled .... will need to look a bit deeper into the <code>page.context().storageState()</code> stuff
* something is broken in v1.44.0 and needed to down grade to 1.43.0 (
** update package.json "@playwright/test": "1.43.0"
** delete package-lock.json
** run <code>npm install</code>
** run <code>npx playwright install</code>


=== API Authentication ===
=== API Authentication ===

Navigation menu