test(quantic): Add tests for feedback modal edge cases in quanticSmartSnippet e2e tests #26612
prbot.yml
on: pull_request
Matrix: Run e2e tests on Atomic
Check with linter
3m 53s
Run unit tests
3m 52s
Run e2e screenshots tests on Atomic
2m 16s
Run e2e tests on Atomic React
2m 15s
Run e2e tests on Atomic React NextJS
1m 46s
Run e2e tests for IIFE
11s
Run e2e tests on Atomic Angular
2m 58s
Run e2e tests on Vue.js sample
1m 4s
Run e2e tests on Stencil.js sample
1m 58s
Run e2e tests for Atomic Hosted Page
3m 42s
Run e2e tests for Headless Commerce SSR
3m 1s
Run e2e tests on Atomic insight panel
1m 52s
Run e2e tests on Headless SSR App router sample in dev mode
3m 0s
Run e2e tests on Headless SSR App router sample in prod mode
1m 59s
Run e2e tests on Headless SSR Pages router sample in dev mode
2m 47s
Run e2e tests on Headless SSR Pages router sample in prod mode
1m 58s
Verify compatibility of packages
1m 9s
Build typedoc
2m 0s
CDN Checks
4m 8s
Run Quantic E2E tests
/
Setup e2e tests on Quantic
9m 15s
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
12m 8s
Merge Playwright reports
1m 39s
Confirm build is valid
9s
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-enabled] › 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 allow to open the feedback modal:
packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts#L163
9) [LWS-enabled] › 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 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-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
10) [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
|
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.6s
|
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 49.4s
|
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 47.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 46.3s
|
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.5s
|
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 31.6s
|
🎭 Playwright Run Summary
24 passed (40.5s)
|
🎭 Playwright Run Summary
16 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-enabled] › 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 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 searc
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
atomic-hosted-page-playwright-report
|
172 KB |
|
atomic-playwright-report
|
169 KB |
|
blob-report-0
|
580 Bytes |
|
quantic-playwright-report
|
29.5 MB |
|
result-lists-screenshots
|
19.1 MB |
|