feat: autocomplete data fields in the editor #7117
Annotations
10 errors, 5 warnings, and 1 notice
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
|
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
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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/ui-driven/src/invite-to-pay/agent.spec.ts#L97
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L98
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L106
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L140
Unexpected use of networkidle
|
e2e/tests/ui-driven/[chromium] › create-flow.spec.ts#L1
e2e/tests/ui-driven/[chromium] › create-flow.spec.ts took 33.9s
|
|
This job failed
Loading