Skip to content

Commit

Permalink
examples: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Aug 6, 2024
1 parent 0bdec7f commit 67a0560
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/auth-in-steps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ The main challenge with dynamic authentication - steps run *after* all fixtures,

Also, it'is impossible to re-assign storage state of already running browser context.

The solution is similar to [testing multiple roles together](https://playwright.dev/docs/auth#testing-multiple-roles-together). Create browser context manually inside BDD step, save it to shared fixture and use in other steps instead of default `page` fixture.
The solution is similar to [testing multiple roles together](https://playwright.dev/docs/auth#testing-multiple-roles-together). Create browser context manually inside BDD step, save it to shared fixture and use in other steps instead of default `page` fixture.

For saving videos in such setup please check-out [this comment](https://github.com/vitalets/playwright-bdd/issues/185#issuecomment-2245064212).

0 comments on commit 67a0560

Please sign in to comment.