[E2E WEB] Smoke test preview deployment before deploying main #15
deploy.yml
on: push
deploy-preview
2m 58s
test
58s
Annotations
4 errors, 1 warning, and 1 notice
[smoke-tests] › ../smoke-tests/homepage.spec.ts:20:5 › Homepage › when logged in › basic content:
packages/e2e/test.ts#L15
1) [smoke-tests] › ../smoke-tests/homepage.spec.ts:20:5 › Homepage › when logged in › basic content
TypeError: "ikm"" must be an instance of Uint8Array or a string
at ../test.ts:15
13 | const email = 'samtgarson@gmail.com'
14 | const user = await prisma.user.findUniqueOrThrow({ where: { email } })
> 15 | const token = await encode({
| ^
16 | token: {
17 | name: 'Sam Garson',
18 | email,
at normalizeUint8Array (/home/runner/work/books-about-food/books-about-food/node_modules/@panva/hkdf/dist/node/esm/index.js:17:15)
at normalizeIkm (/home/runner/work/books-about-food/books-about-food/node_modules/@panva/hkdf/dist/node/esm/index.js:21:17)
at hkdf (/home/runner/work/books-about-food/books-about-food/node_modules/@panva/hkdf/dist/node/esm/index.js:44:44)
at getDerivedEncryptionKey (/home/runner/work/books-about-food/books-about-food/node_modules/@auth/core/jwt.js:96:18)
at encode (/home/runner/work/books-about-food/books-about-food/node_modules/@auth/core/jwt.js:48:36)
at Object.login (/home/runner/work/books-about-food/books-about-food/packages/e2e/test.ts:15:25)
at /home/runner/work/books-about-food/books-about-food/packages/e2e/smoke-tests/homepage.spec.ts:16:7
|
[smoke-tests] › ../smoke-tests/homepage.spec.ts:25:5 › Homepage › when logged in › protected content:
packages/e2e/test.ts#L15
2) [smoke-tests] › ../smoke-tests/homepage.spec.ts:25:5 › Homepage › when logged in › protected content
TypeError: "ikm"" must be an instance of Uint8Array or a string
at ../test.ts:15
13 | const email = 'samtgarson@gmail.com'
14 | const user = await prisma.user.findUniqueOrThrow({ where: { email } })
> 15 | const token = await encode({
| ^
16 | token: {
17 | name: 'Sam Garson',
18 | email,
at normalizeUint8Array (/home/runner/work/books-about-food/books-about-food/node_modules/@panva/hkdf/dist/node/esm/index.js:17:15)
at normalizeIkm (/home/runner/work/books-about-food/books-about-food/node_modules/@panva/hkdf/dist/node/esm/index.js:21:17)
at hkdf (/home/runner/work/books-about-food/books-about-food/node_modules/@panva/hkdf/dist/node/esm/index.js:44:44)
at getDerivedEncryptionKey (/home/runner/work/books-about-food/books-about-food/node_modules/@auth/core/jwt.js:96:18)
at encode (/home/runner/work/books-about-food/books-about-food/node_modules/@auth/core/jwt.js:48:36)
at Object.login (/home/runner/work/books-about-food/books-about-food/packages/e2e/test.ts:15:25)
at /home/runner/work/books-about-food/books-about-food/packages/e2e/smoke-tests/homepage.spec.ts:16:7
|
[smoke-tests] › ../smoke-tests/quick-search.spec.ts:9:3 › Quick Search › finds a page:
packages/e2e/test.ts#L9
3) [smoke-tests] › ../smoke-tests/quick-search.spec.ts:9:3 › Quick Search › finds a page ─────────
Error: No auth cookie found
at ../test.ts:9
7 | const cookies = await context.cookies()
8 | const authCookie = cookies.find((cookie) => cookie.name.includes('authjs'))
> 9 | if (!authCookie) throw new Error('No auth cookie found')
| ^
10 |
11 | const prefix = authCookie.name.split('.')[0]
12 | const cookieName = `${prefix}.session-token`
at Object.login (/home/runner/work/books-about-food/books-about-food/packages/e2e/test.ts:9:28)
at /home/runner/work/books-about-food/books-about-food/packages/e2e/smoke-tests/quick-search.spec.ts:5:5
|
test
Process completed with exit code 1.
|
test
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
|
🎭 Playwright Run Summary
3 failed
[smoke-tests] › ../smoke-tests/homepage.spec.ts:20:5 › Homepage › when logged in › basic content
[smoke-tests] › ../smoke-tests/homepage.spec.ts:25:5 › Homepage › when logged in › protected content
[smoke-tests] › ../smoke-tests/quick-search.spec.ts:9:3 › Quick Search › finds a page ──────────
1 passed (13.5s)
|