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!