Skip to content

feat: autocomplete data fields in the editor #7118

feat: autocomplete data fields in the editor

feat: autocomplete data fields in the editor #7118

Triggered via pull request December 12, 2024 08:42
Status Failure
Total duration 12m 18s
Artifacts 1

pull-request.yml

on: pull_request
Check file changes
6s
Check file changes
Build React App
3m 47s
Build React App
Run Integration tests
5m 16s
Run Integration tests
Run API Tests
0s
Run API Tests
Run React Tests
6m 22s
Run React Tests
Generate Hasura Change Summary
0s
Generate Hasura Change Summary
E2E tests
11m 57s
E2E tests
Upsert Vultr Instance
2m 53s
Upsert Vultr Instance
Run Pulumi Preview
0s
Run Pulumi Preview
Run Healthcheck on Pizza Services
33s
Run Healthcheck on Pizza Services
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 5 warnings, and 1 notice
[chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation: e2e/tests/ui-driven/src/helpers/addComponent.ts#L175
1) [chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation, publish and preview › Create a flow Error: locator.fill: Error: strict mode violation: getByPlaceholder('Data Field') resolved to 2 elements: 1) <div role="status" aria-atomic="true" aria-live="polite" placeholder="Data field" class="MuiAutocomplete-root MuiAutocomplete-hasPopupIcon css-n0fqzr">…</div> aka locator('fieldset').filter({ hasText: 'Always put to user (forgo' }).getByRole('status') 2) <input value="" type="text" role="combobox" autocomplete="off" spellcheck="false" aria-invalid="false" aria-expanded="false" autocapitalize="none" placeholder="Data field" aria-autocomplete="list" id="data-field-autocomplete" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-1c4b4xo"/> aka getByRole('combobox', { name: 'Data field' }) Call log: - waiting for getByPlaceholder('Data Field') at helpers/addComponent.ts:175 173 | await page.getByRole("dialog").waitFor(); 174 | await page.getByPlaceholder("Text").fill(questionText); > 175 | await page.getByPlaceholder("Data Field").fill(dataField); | ^ 176 | await createComponentOptionsWithDataValues(page, options); 177 | await page.locator('button[form="modal"][type="submit"]').click(); 178 | }; at createQuestionWithDataFieldOptions (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/addComponent.ts:175:45) at PlaywrightEditor.createQuestionWithDataFieldOptions (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/pages/Editor.ts:93:5) at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:61:5
[chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation: e2e/tests/ui-driven/src/helpers/addComponent.ts#L175
1) [chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation, publish and preview › Create a flow Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.fill: Error: strict mode violation: getByPlaceholder('Data Field') resolved to 2 elements: 1) <div role="status" aria-atomic="true" aria-live="polite" placeholder="Data field" class="MuiAutocomplete-root MuiAutocomplete-hasPopupIcon css-n0fqzr">…</div> aka locator('fieldset').filter({ hasText: 'Always put to user (forgo' }).getByRole('status') 2) <input value="" type="text" role="combobox" autocomplete="off" spellcheck="false" aria-invalid="false" aria-expanded="false" autocapitalize="none" placeholder="Data field" aria-autocomplete="list" id="data-field-autocomplete" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-1c4b4xo"/> aka getByRole('combobox', { name: 'Data field' }) Call log: - waiting for getByPlaceholder('Data Field') at helpers/addComponent.ts:175 173 | await page.getByRole("dialog").waitFor(); 174 | await page.getByPlaceholder("Text").fill(questionText); > 175 | await page.getByPlaceholder("Data Field").fill(dataField); | ^ 176 | await createComponentOptionsWithDataValues(page, options); 177 | await page.locator('button[form="modal"][type="submit"]').click(); 178 | }; at createQuestionWithDataFieldOptions (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/addComponent.ts:175:45) at PlaywrightEditor.createQuestionWithDataFieldOptions (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/pages/Editor.ts:93:5) at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:61:5
[chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation: e2e/tests/ui-driven/src/helpers/addComponent.ts#L175
1) [chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation, publish and preview › Create a flow Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.fill: Error: strict mode violation: getByPlaceholder('Data Field') resolved to 2 elements: 1) <div role="status" aria-atomic="true" aria-live="polite" placeholder="Data field" class="MuiAutocomplete-root MuiAutocomplete-hasPopupIcon css-n0fqzr">…</div> aka locator('fieldset').filter({ hasText: 'Always put to user (forgo' }).getByRole('status') 2) <input value="" type="text" role="combobox" autocomplete="off" spellcheck="false" aria-invalid="false" aria-expanded="false" autocapitalize="none" placeholder="Data field" aria-autocomplete="list" id="data-field-autocomplete" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-1c4b4xo"/> aka getByRole('combobox', { name: 'Data field' }) Call log: - waiting for getByPlaceholder('Data Field') at helpers/addComponent.ts:175 173 | await page.getByRole("dialog").waitFor(); 174 | await page.getByPlaceholder("Text").fill(questionText); > 175 | await page.getByPlaceholder("Data Field").fill(dataField); | ^ 176 | await createComponentOptionsWithDataValues(page, options); 177 | await page.locator('button[form="modal"][type="submit"]').click(); 178 | }; at createQuestionWithDataFieldOptions (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/addComponent.ts:175:45) at PlaywrightEditor.createQuestionWithDataFieldOptions (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/pages/Editor.ts:93:5) at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:61:5
[chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation: e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts#L1
2) [chromium] › create-flow-with-geospatial.spec.ts:91: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:91:7 › Flow creation: e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts#L7
2) [chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components Error: expect(locator).toBeVisible() Locator: getByRole('link', { name: 'a-test-service' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 45000ms - waiting for getByRole('link', { name: 'a-test-service' }) at helpers/navigateAndPublish.ts:7 5 | await page.goto(`/${contextDefaults.team.slug}/${slug}`); 6 | > 7 | await expect(page.getByRole("link", { name: slug })).toBeVisible(); | ^ 8 | }; 9 | 10 | export const publishService = async (page: Page) => { at navigateToService (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts:7:56) at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:99:5
[chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation: e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts#L1
2) [chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 45000ms exceeded.
[chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation: e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts#L7
2) [chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toBeVisible() Locator: getByRole('link', { name: 'a-test-service' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 45000ms - waiting for getByRole('link', { name: 'a-test-service' }) at helpers/navigateAndPublish.ts:7 5 | await page.goto(`/${contextDefaults.team.slug}/${slug}`); 6 | > 7 | await expect(page.getByRole("link", { name: slug })).toBeVisible(); | ^ 8 | }; 9 | 10 | export const publishService = async (page: Page) => { at navigateToService (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts:7:56) at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:99:5
[chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation: e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts#L1
2) [chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 45000ms exceeded.
[chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation: e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts#L7
2) [chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toBeVisible() Locator: getByRole('link', { name: 'a-test-service' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 45000ms - waiting for getByRole('link', { name: 'a-test-service' }) at helpers/navigateAndPublish.ts:7 5 | await page.goto(`/${contextDefaults.team.slug}/${slug}`); 6 | > 7 | await expect(page.getByRole("link", { name: slug })).toBeVisible(); | ^ 8 | }; 9 | 10 | export const publishService = async (page: Page) => { at navigateToService (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/navigateAndPublish.ts:7:56) at /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:99:5
E2E tests
Process completed with exit code 1.
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#L98
Unexpected use of networkidle
E2E tests: e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L106
Unexpected use of networkidle
E2E tests: e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L140
Unexpected use of networkidle
Slow Test: e2e/tests/ui-driven/[chromium] › create-flow.spec.ts#L1
e2e/tests/ui-driven/[chromium] › create-flow.spec.ts took 33.3s
🎭 Playwright Run Summary
2 failed [chromium] › create-flow-with-geospatial.spec.ts:46:7 › Flow creation, publish and preview › Create a flow [chromium] › create-flow-with-geospatial.spec.ts:91:7 › Flow creation, publish and preview › Publish and preview flow with geospatial components 20 passed (3.6m)

Artifacts

Produced during runtime
Name Size
playwright-report Expired
1.55 MB