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: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ This project is a monorepo based on turborepo.
41
41
├── apps
42
42
│ └── frontend - Contains the logic for the site
43
43
├── packages
44
-
│ ├── auth - Based on lucia-auth.com / same as we have at itaps monorepo
44
+
│ ├── auth - Based on lucia-auth.com
45
45
│ ├── db - Contains all the database related stuff ( prisma schema, migrations, seeds etc. )
46
46
│ ├── helpers - Helper functions 🤷♂️
47
47
│ ├── locales - contains the translations for the `frontend` app
@@ -85,11 +85,26 @@ This project is a monorepo based on turborepo.
85
85
## Todos
86
86
87
87
-[ ] Add unit tests
88
-
-[ ] Add more docs ( like how to activate/use mock users )
89
88
-[ ] Integrate https://github.com/sadmann7/shadcn-table to have an example
90
89
-[ ] Maybe: Adding a RBAC solution ( maybe via casl? )
91
90
-[ ] Add a contribution guide
92
91
92
+
## Running playwright tests
93
+
94
+
We have prepared some simple testcases to test the authentication in the nextjs app.
95
+
96
+
To make it runable inside a CI or locally, we're using an [oauth mock server](https://github.com/axa-group/oauth2-mock-server) to make it easier to run the tests and ensuring everything works as expected without having to add some magic to bypass the tests.
97
+
98
+
With this, we automatically test the authentication flow.
99
+
100
+
By running `pnpm dev`, the oauth mock server will start, too.
101
+
102
+
You only have to set `OAUTH_MOCK_ENABLED` to `true` in your `.env` file.
103
+
104
+
Last step is to open a new terminal tab and run `pnpm test:e2e:nextjs` to start the playwright tests.
105
+
106
+
You can find the complete playwright configuration in `tooling/playwright`.
107
+
93
108
## Credits
94
109
95
110
Without the amazing work of the [T3 OSS Community](https://github.com/t3-oss), this project wouldn't exists.
0 commit comments