feat: introduce invites and allow for inviting new users without crea… #479
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
on_main.yml
on: push
Matrix: ci / ci
deploy-docs
/
build-docs
1m 39s
build-all
/
Emit container tag sha
15s
build-all
/
...
/
Build
4m 49s
build-all
/
...
/
Build
4m 21s
build-all
/
...
/
Build
2m 11s
Matrix: run-e2e / Integration tests
deploy-preview
/
preview
4m 4s
deploy-all
/
...
/
Deploy
deploy-all
/
...
/
Deploy
Annotations
6 errors, 4 warnings, and 1 notice
|
[chromium] › playwright/invites.spec.ts:800:2 › different roles in invites › user can accept invite with admin role:
core/playwright/invites.spec.ts#L809
1) [chromium] › playwright/invites.spec.ts:800:2 › different roles in invites › user can accept invite with admin role › user can access invite with admin role
TimeoutError: locator.waitFor: Timeout 1000ms exceeded.
Call log:
- waiting for getByText('Create account') to be visible
807 | await expect(page).toHaveURL(inviteUrl);
808 |
> 809 | await page.getByText("Create account").waitFor({
| ^
810 | state: "visible",
811 | timeout: 1000,
812 | });
at /home/runner/work/platform/platform/core/playwright/invites.spec.ts:809:43
at /home/runner/work/platform/platform/core/playwright/invites.spec.ts:801:3
|
|
[chromium] › playwright/invites.spec.ts:800:2 › different roles in invites › user can accept invite with admin role:
core/playwright/invites.spec.ts#L809
1) [chromium] › playwright/invites.spec.ts:800:2 › different roles in invites › user can accept invite with admin role › user can access invite with admin role
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 1000ms exceeded.
Call log:
- waiting for getByText('Create account') to be visible
807 | await expect(page).toHaveURL(inviteUrl);
808 |
> 809 | await page.getByText("Create account").waitFor({
| ^
810 | state: "visible",
811 | timeout: 1000,
812 | });
at /home/runner/work/platform/platform/core/playwright/invites.spec.ts:809:43
at /home/runner/work/platform/platform/core/playwright/invites.spec.ts:801:3
|
|
[chromium] › playwright/invites.spec.ts:426:2 › invalid invite scenarios › no invite token provided:
core/lib/server/invites/InviteService.ts#L244
2) [chromium] › playwright/invites.spec.ts:426:2 › invalid invite scenarios › no invite token provided
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
error: duplicate key value violates unique constraint "users_email_key"
at ../lib/server/invites/InviteService.ts:244
242 | expect(provUser);
243 |
> 244 | const newUser = await addUser(
| ^
245 | {
246 | firstName: provUser.firstName,
247 | lastName: provUser.lastName,
at /home/runner/work/platform/platform/node_modules/.pnpm/pg@8.12.0/node_modules/pg/lib/client.js:526:17
at PostgresConnection.executeQuery (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js:72:28)
at /home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:35:28
at DefaultConnectionProvider.provideConnection (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/driver/default-connection-provider.js:10:20)
at DefaultQueryExecutor.executeQuery (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:34:16)
at InsertQueryBuilder.execute (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:916:24)
at InsertQueryBuilder.executeTakeFirst (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:934:26)
at InsertQueryBuilder.executeTakeFirstOrThrow (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:946:24)
at Object._createInvite (/home/runner/work/platform/platform/core/lib/server/invites/InviteService.ts:244:20)
at /home/runner/work/platform/platform/core/prisma/seed/seedCommunity.ts:1374:20
at seedCommunity (/home/runner/work/platform/platform/core/prisma/seed/seedCommunity.ts:1303:3)
at /home/runner/work/platform/platform/core/playwright/invites.spec.ts:394:14
at PostgresConnection.executeQuery (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js:92:41)
at /home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:35:28
at DefaultConnectionProvider.provideConnection (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/driver/default-connection-provider.js:10:20)
at DefaultQueryExecutor.executeQuery (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:34:16)
at InsertQueryBuilder.execute (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:916:24)
at InsertQueryBuilder.executeTakeFirst (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:934:26)
at InsertQueryBuilder.executeTakeFirstOrThrow (/home/runner/work/platform/platform/node_modules/.pnpm/kysely@0.27.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:946:24)
at Object._createInvite (/home/runner/work/platform/platform/core/lib/server/invites/InviteService.ts:244:20)
at /home/runner/work/platform/platform/core/prisma/seed/seedCommunity.ts:1374:20
at seedCommunity (/home/runner/work/platform/platform/core/prisma/seed/seedCommunity.ts:1303:3)
at /home/runner/work/platform/platform/core/playwright/invites.spec.ts:394:14
|
|
[chromium] › playwright/member.spec.ts:123:7 › Community members › User needs to confirm their email address again if they change it during signup:
core/playwright/member.spec.ts#L54
3) [chromium] › playwright/member.spec.ts:123:7 › Community members › User needs to confirm their email address again if they change it during signup
Error: expect(locator).toBeVisible()
Locator: getByText('No results.')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByText('No results.')
52 | await membersPage.addExistingUser("some@pubpub.org");
53 | await membersPage.removeMember("some@pubpub.org");
> 54 | expect(page.getByText("No results.")).toBeVisible();
| ^
55 | });
56 |
57 | test("new user signup flow", async ({ browser }) => {
at /home/runner/work/platform/platform/core/playwright/member.spec.ts:54:41
|
|
run-e2e / Integration tests (core)
core#playwright:test: command (/home/runner/work/platform/platform/core) /home/runner/setup-pnpm/node_modules/.bin/pnpm run playwright:test exited (1)
|
|
run-e2e / Integration tests (core)
Process completed with exit code 1.
|
|
build-all / build-base / Build
Failed to download action 'https://api.github.com/internal/immutable-actions/docker/setup-buildx-action/download/sha256:775b385d8f60d8467d51ec10aae277bba5bee2f7eb7c00dc2f3a83338bed8e3f?x-ghcr-actor-id=654103159&x-ghcr-actor-type=repository&x-ghcr-alg=hmac-sha256&x-ghcr-date=2025-05-06T15:22:54Z&x-ghcr-expires=10m0s&x-ghcr-host=ghcr.io&***
|
|
build-all / build-base / Build
Back off 13.216 seconds before retry.
|
|
build-all / build-base / Build
Failed to download action 'https://api.github.com/internal/immutable-actions/docker/build-push-action/download/sha256:0950273ea4b446d07c96e802bf79257319d91efdf6ee0f2e0445cd5e3b69e13d?x-ghcr-actor-id=654103159&x-ghcr-actor-type=repository&x-ghcr-alg=hmac-sha256&x-ghcr-date=2025-05-06T15:22:54Z&x-ghcr-expires=10m0s&x-ghcr-host=ghcr.io&***
|
|
build-all / build-base / Build
Back off 27.689 seconds before retry.
|
|
🎭 Playwright Run Summary
1 failed
[chromium] › playwright/invites.spec.ts:800:2 › different roles in invites › user can accept invite with admin role
2 flaky
[chromium] › playwright/invites.spec.ts:426:2 › invalid invite scenarios › no invite token provided
[chromium] › playwright/member.spec.ts:123:7 › Community members › User needs to confirm their email address again if they change it during signup
7 skipped
103 passed (2.4m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-snapshots
Expired
|
4.27 MB |
sha256:57d0768e8b01c4a1279cbd751f332112d9fea8625a9678c1e9eabe28b639d1ba
|
|