You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,3 +115,33 @@ The frontend code is structured as follows:
115
115
*`frontend/src/hooks` - Custom hooks.
116
116
*`frontend/src/routes` - The different routes of the frontend which include the pages.
117
117
*`theme.tsx` - The Chakra UI custom theme.
118
+
119
+
## End-to-End Testing with Playwright
120
+
121
+
The frontend includes initial end-to-end tests using Playwright. To run the tests, you need to have the Docker Compose stack running. Start the stack with the following command:
122
+
123
+
```bash
124
+
docker compose up -d
125
+
```
126
+
127
+
Then, you can run the tests with the following command:
128
+
129
+
```bash
130
+
npx playwright test
131
+
```
132
+
133
+
You can also run your tests in UI mode to see the browser and interact with it running:
134
+
135
+
```bash
136
+
npx playwright test --ui
137
+
```
138
+
139
+
To stop and remove the Docker Compose stack and clean the data created in tests, use the following command:
140
+
141
+
```bash
142
+
docker compose down -v
143
+
```
144
+
145
+
To update the tests, navigate to the tests directory and modify the existing test files or add new ones as needed.
146
+
147
+
For more information on writing and running Playwright tests, refer to the official [Playwright documentation](https://playwright.dev/docs/intro).
0 commit comments