Protected logic
- Testing the logic behind authentication (e.g. user creating notes).
Your task
๐จโ๐ผ In this exercise, your task is to set up authentication for tests. To achieve that, you will be using a library called Playwright Persona. Please take a moment to read about it before continuing.
๐จ Start by installing
playwright-persona as a dependency in your project:npm i playwright-persona -D
๐จ Next, head to
and follow the instructions to define user personas.
๐จ Once you've defined the
user persona and created the authenticate() fixture, continue to the test suite and finish the test case here.
Verify your solution by running the tests (
npm test). The tests must pass!