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
Scaffolded global steps include navigation, clicking buttons by accessible name, URL assertions, and text/heading checks. Prefer reusing global steps; add domain-specific ones only when needed for clarity.
233
+
221
234
### Example Test
222
235
223
236
```typescript
@@ -274,7 +287,10 @@ git push origin v0.x.x
274
287
275
288
### Authentication Not Working
276
289
277
-
-**Development**: Ensure OIDC mock is running (`pnpm oidc`)
290
+
-**Development**:
291
+
- Ensure OIDC mock is running (`pnpm oidc`) or start the full stack with `pnpm dev`
292
+
- Dev provider issues refresh tokens unconditionally and uses a short AccessToken TTL (15s) to exercise the refresh flow
293
+
- If you see origin errors (403), ensure `BETTER_AUTH_URL` matches the port you use (default `http://localhost:3000`) or include it in `TRUSTED_ORIGINS`
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ bun dev
16
16
17
17
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
18
19
-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
19
+
Authentication: the dev stack also starts a local OIDC provider (on :4000) and MSW mock API (on :9090). The `/signin`page initiates the OIDC flow and redirects back to `/catalog` on success.
20
20
21
21
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
22
@@ -109,6 +109,30 @@ To learn more about Next.js, take a look at the following resources:
109
109
110
110
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
pnpm dev # start Next (3000) + OIDC (4000) + Mock API (9090)
129
+
pnpm run test:bdd # run Cucumber scenarios (headless)
130
+
pnpm run test:bdd:debug # headed with Playwright Inspector (PWDEBUG=1)
131
+
pnpm run test:bdd:trace # capture Playwright traces (PWTRACE=1)
132
+
```
133
+
134
+
CI runs the E2E suite via `.github/workflows/bdd.yml`.
135
+
112
136
## Deploy on Vercel
113
137
114
138
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
0 commit comments