test(quantic): Add tests for feedback modal edge cases in quanticSmartSnippet e2e tests #26567
Annotations
10 errors, 5 warnings, and 1 notice
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright:
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
|
Run /./.github/actions/e2e-quantic-playwright
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
|
Loading