test(quantic): Add tests for feedback modal edge cases in quanticSmartSnippet e2e tests #26565
prbot.yml
on: pull_request
Matrix: Run e2e tests on Atomic
Check with linter
3m 50s
Run unit tests
3m 57s
Run e2e screenshots tests on Atomic
2m 6s
Run e2e tests on Atomic React
2m 12s
Run e2e tests on Atomic React NextJS
1m 38s
Run e2e tests for IIFE
11s
Run e2e tests on Atomic Angular
2m 34s
Run e2e tests on Vue.js sample
1m 2s
Run e2e tests on Stencil.js sample
1m 43s
Run e2e tests for Atomic Hosted Page
2m 30s
Run e2e tests for Headless Commerce SSR
4m 27s
Run e2e tests on Atomic insight panel
1m 57s
Run e2e tests on Headless SSR App router sample in dev mode
2m 44s
Run e2e tests on Headless SSR App router sample in prod mode
2m 0s
Run e2e tests on Headless SSR Pages router sample in dev mode
2m 40s
Run e2e tests on Headless SSR Pages router sample in prod mode
1m 58s
Verify compatibility of packages
1m 11s
Build typedoc
1m 59s
CDN Checks
5m 1s
Run Quantic E2E tests
/
Setup e2e tests on Quantic
8m 28s
Matrix: Run Playwright tests for Atomic
Matrix: Run Quantic E2E tests / Run Cypress e2e tests on Quantic
Run Quantic E2E tests
/
Run Playwright e2e tests on Quantic
10m 25s
Merge Playwright reports
1m 39s
Confirm build is valid
8s
Annotations
10 errors, 6 warnings, and 2 notices
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the search use case › with default options › should load as expected:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L27
1) [LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the search use case › with default options › should load as expected
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "10"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
25 | test
26 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 27 | .toHaveText(defaultInitialChoice.toString());
| ^
28 | });
29 |
30 | test.describe('when selecting a new results per page option', () => {
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:27:12
|
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the search use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L50
2) [LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the search use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "25"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
48 | test
49 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 50 | .toHaveText(newChoice.toString());
| ^
51 | test
52 | .expect(searchResponse.request().postDataJSON()?.numberOfResults)
53 | .toBe(newChoice);
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:50:14
|
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:81:9 › quantic results per page in the search use case › when loading from URL hash › should load the right number of results per page:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L92
3) [LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:81:9 › quantic results per page in the search use case › when loading from URL hash › should load the right number of results per page
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "50"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
90 | test
91 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 92 | .toHaveText(expectedResultsPerPage.toString());
| ^
93 | });
94 | });
95 | }
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:92:14
|
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the insight use case › with default options › should load as expected:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L27
4) [LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the insight use case › with default options › should load as expected
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "10"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
25 | test
26 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 27 | .toHaveText(defaultInitialChoice.toString());
| ^
28 | });
29 |
30 | test.describe('when selecting a new results per page option', () => {
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:27:12
|
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the insight use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L50
5) [LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the insight use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "25"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
48 | test
49 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 50 | .toHaveText(newChoice.toString());
| ^
51 | test
52 | .expect(searchResponse.request().postDataJSON()?.numberOfResults)
53 | .toBe(newChoice);
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:50:14
|
[LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing the same query › should not allow to open the feedback modal:
packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts#L136
6) [LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing the same query › should not allow to open the feedback modal
Error: expect(locator).not.toBeVisible()
Locator: getByTestId('feedback__explain-why-button')
Expected: not visible
Received: visible
Call log:
- expect.not.toBeVisible with timeout 5000ms
- waiting for getByTestId('feedback__explain-why-button')
134 | expect(smartSnippet.dislikeButton).not.toBeNull();
135 | await smartSnippet.clickDislikeButton();
> 136 | expect(smartSnippet.explainWhyButton).not.toBeVisible();
| ^
137 | });
138 | });
139 |
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:136:53
|
[LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:141:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing a query that gave a new answer › should open the feedback modal:
packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts#L163
7) [LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:141:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing a query that gave a new answer › should open the feedback modal
Error: expect(locator).toBeVisible()
Locator: getByTestId('feedback__explain-why-button')
Expected: visible
Received: undefined
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByTestId('feedback__explain-why-button')
161 | expect(smartSnippet.dislikeButton).not.toBeNull();
162 | await smartSnippet.clickDislikeButton();
> 163 | expect(smartSnippet.explainWhyButton).toBeVisible();
| ^
164 | });
165 | });
166 | });
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:163:49
|
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the search use case › with default options › should load as expected:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L27
8) [LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the search use case › with default options › should load as expected
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "10"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
25 | test
26 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 27 | .toHaveText(defaultInitialChoice.toString());
| ^
28 | });
29 |
30 | test.describe('when selecting a new results per page option', () => {
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:27:12
|
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the search use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L50
9) [LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the search use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "25"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
48 | test
49 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 50 | .toHaveText(newChoice.toString());
| ^
51 | test
52 | .expect(searchResponse.request().postDataJSON()?.numberOfResults)
53 | .toBe(newChoice);
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:50:14
|
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:81:9 › quantic results per page in the search use case › when loading from URL hash › should load the right number of results per page:
packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts#L92
10) [LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:81:9 › quantic results per page in the search use case › when loading from URL hash › should load the right number of results per page
Error: expect(locator).toHaveText(expected)
Locator: getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
Expected string: "50"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('results-per-page').locator('c-quantic-number-button').filter({ has: locator('button.slds-button_brand') })
90 | test
91 | .expect(resultsPerPage.selectedResultsPerPageOption)
> 92 | .toHaveText(expectedResultsPerPage.toString());
| ^
93 | });
94 | });
95 | }
at /home/runner/work/ui-kit/ui-kit/packages/quantic/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:92:14
|
Slow Test:
packages/atomic/[chromium] › src/components/commerce/atomic-commerce-breadbox/e2e/atomic-commerce-breadbox.e2e.ts#L1
packages/atomic/[chromium] › src/components/commerce/atomic-commerce-breadbox/e2e/atomic-commerce-breadbox.e2e.ts took 39.7s
|
Slow Test:
packages/quantic/[LWS-disabled] › force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts#L1
packages/quantic/[LWS-disabled] › force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts took 50.0s
|
Slow Test:
packages/quantic/[LWS-disabled] › force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts#L1
packages/quantic/[LWS-disabled] › force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts took 40.0s
|
Slow Test:
packages/quantic/[LWS-enabled] › force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts#L1
packages/quantic/[LWS-enabled] › force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts took 33.3s
|
Slow Test:
packages/quantic/[LWS-enabled] › force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts#L1
packages/quantic/[LWS-enabled] › force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts took 32.1s
|
Slow Test:
packages/quantic/[LWS-disabled] › force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts#L1
packages/quantic/[LWS-disabled] › force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts took 30.0s
|
🎭 Playwright Run Summary
24 passed (43.8s)
|
🎭 Playwright Run Summary
14 flaky
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the search use case › with default options › should load as expected
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the search use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:81:9 › quantic results per page in the search use case › when loading from URL hash › should load the right number of results per page
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the insight use case › with default options › should load as expected
[LWS-enabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the insight use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics
[LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing the same query › should not allow to open the feedback modal
[LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:141:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing a query that gave a new answer › should open the feedback modal
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the search use case › with default options › should load as expected
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:31:9 › quantic results per page in the search use case › with default options › when selecting a new results per page option › should trigger a new search and log analytics
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:81:9 › quantic results per page in the search use case › when loading from URL hash › should load the right number of results per page
[LWS-disabled] › force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts:20:7 › quantic results per page in the insight use case › with default options › should load as expected
[LWS-disabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing the same query › should not allow to open the feedback modal
[LWS-disabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:141:9 › quantic smart snippet in the search use case › feedback modal interactions › when trying to open the feedback modal after executing a query that gave a new answer › should open the feedback modal
[LWS-disabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:141:9 › quantic smart snippet in the insight use case › feedback modal interactions › when trying to open the feedback modal after executing a query that gave a new answer › should open the feedback modal
166 passed (8.3m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
atomic-hosted-page-playwright-report
Expired
|
172 KB |
|
atomic-playwright-report
Expired
|
169 KB |
|
blob-report-0
Expired
|
585 Bytes |
|
quantic-playwright-report
Expired
|
25.6 MB |
|
result-lists-screenshots
|
22.2 MB |
|