feat: Add External Portals to E2E ui-driven tests #6935
pull-request.yml
on: pull_request
Check file changes
3s
Run Integration tests
4m 58s
Run API Tests
0s
Run React Tests
6m 44s
Generate Hasura Change Summary
0s
E2E tests
9m 41s
Run Pulumi Preview
0s
Run Healthcheck on Pizza Services
35s
Annotations
10 errors, 7 warnings, and 1 notice
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts#L1
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Test timeout of 45000ms exceeded.
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L242
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:242
240 | if (context.user?.id) {
241 | log(`deleting user ${context.user?.id}`);
> 242 | await adminGQLClient.request(
| ^
243 | `mutation DeleteTestUser($userId: Int!) {
244 | delete_users_by_pk(id: $userId) {
245 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:242:5)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:33:5
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts#L104
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Error: expect(locator).toBeVisible()
Locator: locator('h1').filter({ hasText: 'Find the property' })
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 45000ms
- waiting for locator('h1').filter({ hasText: 'Find the property' })
102 | await expect(
103 | page.locator("h1", { hasText: "Find the property" }),
> 104 | ).toBeVisible();
| ^
105 | await answerFindProperty(page);
106 | await clickContinue({ page });
107 |
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:104:7
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts#L25
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Error: expect(locator).toBeVisible()
Locator: getByText('Service settings updated successfully')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 45000ms
- waiting for getByText('Service settings updated successfully')
at helpers/navigateAndPublish.ts:25
23 | await expect(
24 | page.getByText("Service settings updated successfully"),
> 25 | ).toBeVisible();
| ^
26 | };
27 |
at turnServiceOnline (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts:25:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:89:22
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L264
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:264
262 | `deleting user ${context.user?.email} userId: ${response.users[0].id}`,
263 | );
> 264 | await adminGQLClient.request(
| ^
265 | `mutation DeleteTestUser($userId: Int!) {
266 | delete_users_by_pk(id: $userId) {
267 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:264:7)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:27:7
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L264
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:264
262 | `deleting user ${context.user?.email} userId: ${response.users[0].id}`,
263 | );
> 264 | await adminGQLClient.request(
| ^
265 | `mutation DeleteTestUser($userId: Int!) {
266 | delete_users_by_pk(id: $userId) {
267 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:264:7)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:33:5
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L264
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:264
262 | `deleting user ${context.user?.email} userId: ${response.users[0].id}`,
263 | );
> 264 | await adminGQLClient.request(
| ^
265 | `mutation DeleteTestUser($userId: Int!) {
266 | delete_users_by_pk(id: $userId) {
267 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:264:7)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:27:7
|
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L264
1) [chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:264
262 | `deleting user ${context.user?.email} userId: ${response.users[0].id}`,
263 | );
> 264 | await adminGQLClient.request(
| ^
265 | `mutation DeleteTestUser($userId: Int!) {
266 | delete_users_by_pk(id: $userId) {
267 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:264:7)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:33:5
|
[chromium] › create-flow.spec.ts:56:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L264
2) [chromium] › create-flow.spec.ts:56:7 › Flow creation, publish and preview › Create a flow ────
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:264
262 | `deleting user ${context.user?.email} userId: ${response.users[0].id}`,
263 | );
> 264 | await adminGQLClient.request(
| ^
265 | `mutation DeleteTestUser($userId: Int!) {
266 | delete_users_by_pk(id: $userId) {
267 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:264:7)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow.spec.ts:47:7
|
[chromium] › create-flow.spec.ts:56:7 › Flow creation:
e2e/tests/ui-driven/src/helpers/context.ts#L264
2) [chromium] › create-flow.spec.ts:56:7 › Flow creation, publish and preview › Create a flow ────
Error: Foreign key violation. update or delete on table "users" violates foreign key constraint "flows_creator_id_fkey" on table "flows": {"response":{"errors":[{"message":"Foreign key violation. update or delete on table \"users\" violates foreign key constraint \"flows_creator_id_fkey\" on table \"flows\"","extensions":{"path":"$","code":"constraint-violation"}}],"status":200,"headers":{}},"request":{"query":"mutation DeleteTestUser($userId: Int!) {\n delete_users_by_pk(id: $userId) {\n id\n }\n }","variables":{"userId":1}}}
at helpers/context.ts:264
262 | `deleting user ${context.user?.email} userId: ${response.users[0].id}`,
263 | );
> 264 | await adminGQLClient.request(
| ^
265 | `mutation DeleteTestUser($userId: Int!) {
266 | delete_users_by_pk(id: $userId) {
267 | id
at makeRequest (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@ccf9ac3/node_modules/@opensystemslab/planx-core/node_modules/graphql-request/src/index.ts:426:11)
at deleteUser (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:264:7)
at tearDownTestContext (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:83:5)
at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow.spec.ts:53:5
|
E2E tests:
e2e/tests/ui-driven/src/helpers/context.ts#L163
'deleteSession' is defined but never used. Allowed unused vars must match /^_/u
|
E2E tests:
e2e/tests/ui-driven/src/helpers/context.ts#L190
'deletePublishedFlow' is defined but never used. Allowed unused vars must match /^_/u
|
E2E tests:
e2e/tests/ui-driven/src/helpers/context.ts#L204
'deleteFlow' is defined but never used. Allowed unused vars must match /^_/u
|
E2E tests:
e2e/tests/ui-driven/src/invite-to-pay/agent.spec.ts#L97
Unexpected use of networkidle
|
E2E tests:
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L89
Unexpected use of networkidle
|
E2E tests:
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L97
Unexpected use of networkidle
|
E2E tests:
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L131
Unexpected use of networkidle
|
🎭 Playwright Run Summary
3 failed
[chromium] › create-flow-with-geospatial.spec.ts:71:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components
[chromium] › create-flow.spec.ts:56:7 › Flow creation, publish and preview › Create a flow ─────
[chromium] › login.spec.ts:29:7 › Login › setting a cookie bypasses login ──────────────────────
1 flaky
[chromium] › save-and-return.spec.ts:47:9 › Save and return › email › email confirmation is required
7 did not run
11 passed (1.7m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
4.75 MB |
|