test(quantic): Add tests for feedback modal edge cases in quanticSmartSnippet e2e tests #26567
prbot.yml
on: pull_request
Matrix: Run e2e tests on Atomic
Check with linter
3m 48s
Run unit tests
4m 20s
Run e2e screenshots tests on Atomic
2m 0s
Run e2e tests on Atomic React
2m 21s
Run e2e tests on Atomic React NextJS
1m 38s
Run e2e tests for IIFE
12s
Run e2e tests on Atomic Angular
2m 46s
Run e2e tests on Vue.js sample
1m 2s
Run e2e tests on Stencil.js sample
1m 45s
Run e2e tests for Atomic Hosted Page
2m 33s
Run e2e tests for Headless Commerce SSR
2m 52s
Run e2e tests on Atomic insight panel
2m 29s
Run e2e tests on Headless SSR App router sample in dev mode
2m 31s
Run e2e tests on Headless SSR App router sample in prod mode
2m 39s
Run e2e tests on Headless SSR Pages router sample in dev mode
2m 35s
Run e2e tests on Headless SSR Pages router sample in prod mode
2m 9s
Verify compatibility of packages
1m 17s
Build typedoc
2m 5s
CDN Checks
4m 5s
Run Quantic E2E tests
/
Setup e2e tests on Quantic
8m 56s
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 41s
Merge Playwright reports
1m 30s
Confirm build is valid
10s
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 allow to 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 allow to 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-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the insight 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
8) [LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the insight 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-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
9) [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
10) [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
|
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 34.7s
|
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 49.3s
|
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 46.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.9s
|
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 31.4s
|
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 27.9s
|
🎭 Playwright Run Summary
24 passed (38.3s)
|
🎭 Playwright Run Summary
17 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 allow to open the feedback modal
[LWS-enabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the insight 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/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/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-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 allow to open the feedback modal
[LWS-disabled] › force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts:119:9 › quantic smart snippet in the insig
|
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
|
33.5 MB |
|
result-lists-screenshots
|
16.7 MB |
|