152 - added playwright config, tests and dev setup
Created by: ri-pandey
Description
Added Playwright test config, and some proof-of-concept tests.
Related Issue(s)
Closes #152 (closed)
Changes Made
List the main changes made in this PR. Be as specific as possible.
-
Feature added -
Bug fixed -
Code refactored -
Documentation updated -
Other changes: [describe]
Checklist
Before submitting this PR, please make sure that:
-
Your code passes linting and coding style checks. -
Documentation has been updated to reflect the changes. -
You have reviewed your own code and resolved any merge conflicts. -
You have requested a review from at least one team member. -
Any relevant issue(s) have been linked to this PR.
Additional Information
This PR contains the setup for Playwright, and some tests. The current set of tests asserts
- role-specific features
- the navigation guard intercepting attempts to access the app UI while logged out
This documentation explains the authentication bypass mechanism that's needed to make the tests pass, how to configure Playwright and how to setup your tests to run in a logged-out/logged-in state.
The only changes made to the application code are:
- Adding
data-testid
s to DOM elements, which is used by the tests. - Ignoring the ticket verification logic in CI environment.