@coveo/quantic 3.43.2 → 3.43.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/data.ts +130 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/fixture.ts +25 -14
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts +57 -16
- package/force-app/main/default/lwc/quanticCardContainer/quanticCardContainer.css +3 -4
- package/force-app/main/default/lwc/quanticCardContainer/quanticCardContainer.html +1 -1
- package/force-app/main/default/lwc/quanticCarousel/quanticCarousel.css +5 -5
- package/force-app/main/default/lwc/quanticCaseClassification/quanticCaseClassification.css +3 -3
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/data.ts +70 -6
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/fixture.ts +17 -13
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/quanticCategoryFacet.e2e.ts +34 -14
- package/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.css +1 -1
- package/force-app/main/default/lwc/quanticCitation/quanticCitation.css +12 -11
- package/force-app/main/default/lwc/quanticDateFacet/e2e/data.ts +24 -4
- package/force-app/main/default/lwc/quanticDateFacet/e2e/fixture.ts +17 -13
- package/force-app/main/default/lwc/quanticDateFacet/e2e/quanticDateFacet.e2e.ts +26 -4
- package/force-app/main/default/lwc/quanticDidYouMean/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticDocumentSuggestion/quanticDocumentSuggestion.css +2 -2
- package/force-app/main/default/lwc/quanticFacet/e2e/data.ts +50 -9
- package/force-app/main/default/lwc/quanticFacet/e2e/fixture.ts +18 -13
- package/force-app/main/default/lwc/quanticFacet/e2e/quanticFacet.e2e.ts +43 -9
- package/force-app/main/default/lwc/quanticFacet/quanticFacet.css +1 -1
- package/force-app/main/default/lwc/quanticFacetManager/e2e/data.ts +59 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/fixture.ts +26 -15
- package/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts +7 -7
- package/force-app/main/default/lwc/quanticFacetStyles/quanticFacetStyles.css +10 -10
- package/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.css +1 -1
- package/force-app/main/default/lwc/quanticFoldedResultList/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/agentData.ts +32 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/pageObject.ts +6 -0
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswerAgent.e2e.ts +66 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.css +1 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.css +3 -3
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +3 -3
- package/force-app/main/default/lwc/quanticGeneratedAnswerBody/__tests__/quanticGeneratedAnswerBody.test.js +39 -0
- package/force-app/main/default/lwc/quanticGeneratedAnswerBody/quanticGeneratedAnswerBody.js +4 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswerContent/templates/generatedMarkdownContent.css +21 -21
- package/force-app/main/default/lwc/quanticGeneratedAnswerContent/templates/generatedTextContent.css +2 -2
- package/force-app/main/default/lwc/quanticGeneratedAnswerFollowUpInput/quanticGeneratedAnswerFollowUpInput.css +9 -9
- package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/quanticGeneratedAnswerStreamOfThought.css +2 -2
- package/force-app/main/default/lwc/quanticGeneratedAnswerThread/quanticGeneratedAnswerThread.css +8 -8
- package/force-app/main/default/lwc/quanticInsightSummary/quanticInsightSummary.css +2 -1
- package/force-app/main/default/lwc/quanticModal/quanticModal.css +3 -3
- package/force-app/main/default/lwc/quanticNotifications/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticNotifications/quanticNotifications.css +2 -2
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/data.ts +24 -4
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/fixture.ts +17 -13
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/quanticNumericFacet.e2e.ts +28 -6
- package/force-app/main/default/lwc/quanticPager/e2e/fixture.ts +3 -3
- package/force-app/main/default/lwc/quanticPager/e2e/quanticPager.e2e.ts +1 -1
- package/force-app/main/default/lwc/quanticPill/quanticPill.css +2 -2
- package/force-app/main/default/lwc/quanticPlaceholder/quanticPlaceholder.css +2 -6
- package/force-app/main/default/lwc/quanticPlaceholder/quanticPlaceholder.html +1 -1
- package/force-app/main/default/lwc/quanticRadioButtonsGroup/quanticRadioButtonsGroup.css +9 -9
- package/force-app/main/default/lwc/quanticRecentQueriesList/e2e/fixture.ts +1 -0
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.css +3 -7
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.html +1 -1
- package/force-app/main/default/lwc/quanticRecentResultsList/e2e/fixture.ts +1 -0
- package/force-app/main/default/lwc/quanticRecentResultsList/quanticRecentResultsList.css +2 -6
- package/force-app/main/default/lwc/quanticRecentResultsList/quanticRecentResultsList.html +1 -1
- package/force-app/main/default/lwc/quanticRecommendationList/e2e/fixture.ts +1 -0
- package/force-app/main/default/lwc/quanticRecommendationList/quanticRecommendationList.css +1 -1
- package/force-app/main/default/lwc/quanticRefineToggle/quanticRefineToggle.css +4 -4
- package/force-app/main/default/lwc/quanticResultActionStyles/quanticResultActionStyles.css +2 -2
- package/force-app/main/default/lwc/quanticResultCopyToClipboard/e2e/fixture.ts +5 -2
- package/force-app/main/default/lwc/quanticResultLink/quanticResultLink.css +1 -1
- package/force-app/main/default/lwc/quanticResultList/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticResultPrintableUri/quanticResultPrintableUri.css +1 -1
- package/force-app/main/default/lwc/quanticResultQuickview/e2e/fixture.ts +7 -3
- package/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.css +6 -6
- package/force-app/main/default/lwc/quanticResultTag/quanticResultTag.css +2 -0
- package/force-app/main/default/lwc/quanticResultTemplate/quanticResultTemplate.css +1 -1
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticSearchBox/e2e/fixture.ts +3 -1
- package/force-app/main/default/lwc/quanticSearchBoxInput/templates/defaultSearchBoxInput.css +1 -1
- package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.css +4 -12
- package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.html +2 -2
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/e2e/fixture.ts +3 -0
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts +6 -4
- package/force-app/main/default/lwc/quanticSmartSnippetSource/quanticSmartSnippetSource.css +1 -1
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/fixture.ts +6 -4
- package/force-app/main/default/lwc/quanticSort/e2e/fixture.ts +3 -2
- package/force-app/main/default/lwc/quanticSort/quanticSort.css +3 -3
- package/force-app/main/default/lwc/quanticSourceCitations/quanticSourceCitations.css +1 -1
- package/force-app/main/default/lwc/quanticStandaloneSearchBox/e2e/fixture.ts +2 -1
- package/force-app/main/default/lwc/quanticStatefulButton/quanticStatefulButton.css +2 -2
- package/force-app/main/default/lwc/quanticTab/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticTabBar/e2e/fixture.ts +6 -2
- package/force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts +3 -2
- package/force-app/main/default/lwc/quanticThreadItem/__tests__/quanticThreadItem.test.js +138 -0
- package/force-app/main/default/lwc/quanticThreadItem/quanticThreadItem.css +27 -6
- package/force-app/main/default/lwc/quanticThreadItem/quanticThreadItem.html +10 -2
- package/force-app/main/default/lwc/quanticThreadItem/quanticThreadItem.js +37 -1
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/data.ts +66 -0
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/fixture.ts +20 -4
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/quanticTimeframeFacet.e2e.ts +24 -0
- package/force-app/main/default/lwc/quanticTimeframeFacet/quanticTimeframeFacet.css +1 -1
- package/force-app/main/default/lwc/quanticTooltip/quanticTooltip.css +3 -3
- package/force-app/main/default/lwc/quanticUserAction/quanticUserAction.css +7 -7
- package/force-app/main/default/lwc/quanticUserActionsSession/quanticUserActionsSession.css +3 -3
- package/force-app/main/default/lwc/quanticUserActionsTimeline/templates/userActionsTimeline.css +2 -2
- package/force-app/main/default/lwc/searchBoxStyle/searchBoxStyle.css +10 -10
- package/force-app/main/default/staticresources/coveobueno/browser/bueno.js +1 -3
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +17 -17
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/case-assist-analytics.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/insight-analytics.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/search-analytics.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/engine-configuration.d.ts +34 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/insight-engine/insight-engine.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/insight-thunk-extra-arguments.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/search-thunk-extra-arguments.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/thunk-extra-arguments.d.ts +9 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/case-assist.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/breadcrumb-manager/headless-breadcrumb-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/sort/headless-core-commerce-sort.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/url-manager/headless-core-url-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-listing/headless-product-listing.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/recommendations/headless-recommendations.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search/headless-search.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/headless-core-context.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/did-you-mean/headless-core-did-you-mean.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facet-manager/headless-core-facet-manager.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/category-facet/headless-core-category-facet.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/facet/headless-core-facet.d.ts +0 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/date-facet/headless-core-date-facet.d.ts +1 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/date-facet/headless-core-date-filter.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/numeric-facet/headless-core-numeric-facet.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/numeric-facet/headless-core-numeric-filter.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/folded-result-list/headless-core-folded-result-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/generated-answer/headless-core-generated-answer.d.ts +1 -25
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/generated-answer/headless-searchapi-generated-answer.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/pager/headless-core-pager.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/query-error/headless-core-query-error.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/recent-queries-list/headless-core-recent-queries-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/result-list/headless-core-result-list.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/results-per-page/headless-core-results-per-page.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/sort/headless-core-sort.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/status/headless-core-status.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/tab/headless-core-tab.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-notify-trigger.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-query-trigger.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-redirection-trigger.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/dictionary-field-context/headless-dictionary-field-context.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/document-suggestion-list/case-assist-headless-interactive-result.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/facets/automatic-facet-generator/headless-automatic-facet-generator.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/facets/category-facet/headless-category-facet.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/facets/facet/headless-facet.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/field-suggestions/category-facet/headless-category-field-suggestions.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/field-suggestions/facet/headless-field-suggestions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/generated-answer/headless-interactive-citation.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/history-manager/headless-history-manager.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/facet-conditions-manager/headless-facet-conditions-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/generated-answer/headless-insight-interactive-citation.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/result-list/headless-insight-interactive-result.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/insight/results-per-page/headless-insight-results-per-page.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/instant-results/instant-results.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/headless-answerapi-generated-answer.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/headless-generated-answer-with-follow-ups.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/pager/headless-pager.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/query-summary/headless-query-summary.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/quickview/headless-quickview.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recent-results-list/headless-recent-results-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recommendation/headless-recommendation.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recommendation/result-list/headless-recommendation-interactive-result.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/relevance-inspector/headless-relevance-inspector.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/result-list/headless-interactive-result.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/result-list/headless-result-list.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/results-per-page/headless-results-per-page.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/smart-snippet-questions-list/headless-smart-snippet-questions-list.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/sort/headless-sort.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/standalone-search-box/headless-standalone-search-box.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/static-filter/headless-static-filter.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/triggers/headless-execute-trigger.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/url-manager/headless-url-manager.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-utils.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/attached-results/attached-results-analytics-actions.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/configuration/configuration-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/context/cart/cart-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/context/context-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/category-facet/category-facet-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/folding/insight-folding-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-analytics-client.d.ts +38 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-insight-analytics-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-search/insight-query-set-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-search/insight-search-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query-set/query-set-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/result/result-insight-analytics-actions.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/index.d.ts +7 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/insight.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/recommendation.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr/commerce/controllers/instant-products/headless-instant-products.ssr.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr/commerce/controllers/standalone-search-box/headless-standalone-search-box.ssr.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce-next.index.d.ts +4 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts +4 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/controllers/instant-products/headless-instant-products.ssr.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/controllers/standalone-search-box/headless-standalone-search-box.ssr.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/types/engine.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next.index.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr.index.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/headless.js +17 -17
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +16 -16
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +16 -16
- package/package.json +4 -4
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<li key={query} class="slds-grid" value={index} onclick={executeQuery} data-testid="recent-query-item">
|
|
27
27
|
<button
|
|
28
28
|
class="slds-button recent-query__container slds-grid_vertical-align-center slds-size_1-of-1 slds-p-around_x-small">
|
|
29
|
-
<lightning-icon class="recent-query__icon slds-current-color" icon-name="utility:search"
|
|
29
|
+
<lightning-icon class="recent-query__icon slds-m-right_x-small slds-current-color" icon-name="utility:search"
|
|
30
30
|
size="xx-small" aria-hidden="true"></lightning-icon>
|
|
31
31
|
<span class="slds-text-body_small query-text__container slds-truncate" data-testid="recent-query-text">{query}</span>
|
|
32
32
|
</button>
|
|
@@ -30,6 +30,7 @@ export const testSearch =
|
|
|
30
30
|
{page, options, configuration, search, urlHash, analytics},
|
|
31
31
|
use
|
|
32
32
|
) => {
|
|
33
|
+
await search.mockSearchWithBaseResponse();
|
|
33
34
|
await page.goto(urlHash ? `${pageUrl}#${urlHash}` : pageUrl);
|
|
34
35
|
const searchResponsePromise = search.waitForSearchResponse();
|
|
35
36
|
await configuration.configure(options);
|
|
@@ -4,17 +4,13 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
6
6
|
min-width: 0;
|
|
7
|
-
color:
|
|
7
|
+
color: var(--slds-s-link-color, var(--lwc-brandTextLink, #0176d3));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.result-link__container {
|
|
11
11
|
min-width: 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.recent-result__icon {
|
|
15
|
-
margin-right: .5rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
14
|
.empty-list-message {
|
|
19
|
-
color: var(--lwc-colorTextPlaceholder, var(--lwc-colorTextIconDefault, #747474));
|
|
15
|
+
color: var(--slds-g-color-on-surface-1, var(--lwc-colorTextPlaceholder, var(--lwc-colorTextIconDefault, #747474)));
|
|
20
16
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="slds-grid" key={result.uniqueId} data-testid="recent-result-item">
|
|
25
25
|
<div
|
|
26
26
|
class="recent-result__container slds-grid_vertical-align-center slds-size_1-of-1 slds-p-around_x-small">
|
|
27
|
-
<lightning-icon class="recent-result__icon slds-current-color" icon-name="utility:page"
|
|
27
|
+
<lightning-icon class="recent-result__icon slds-m-right_x-small slds-current-color" icon-name="utility:page"
|
|
28
28
|
alternative-text="page icon" size="xx-small"></lightning-icon>
|
|
29
29
|
<div class="slds-text-body_small result-link__container">
|
|
30
30
|
<c-quantic-recent-result-link result={result} engine-id={engineId}
|
|
@@ -24,6 +24,7 @@ export const test = quanticBase.extend<QuanticRecommendationListE2EFixtures>({
|
|
|
24
24
|
await use(new SearchObject(page, searchRequestRegex));
|
|
25
25
|
},
|
|
26
26
|
recommendationList: async ({page, options, configuration, search}, use) => {
|
|
27
|
+
await search.mockSearchWithBaseResponse();
|
|
27
28
|
await page.goto(pageUrl);
|
|
28
29
|
configuration.configure(options);
|
|
29
30
|
await search.waitForSearchResponse();
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.refine-button_filters-badge {
|
|
16
|
-
background: var(--lwc-brandAccessible, #0176d3);
|
|
17
|
-
color: var(--lwc-colorBackgroundAlt, #ffffff);
|
|
16
|
+
background: var(--slds-g-color-accent-container-1, var(--lwc-brandAccessible, #0176d3));
|
|
17
|
+
color: var(--slds-g-color-surface-1, var(--lwc-colorBackgroundAlt, #ffffff));
|
|
18
18
|
border-radius: 50%;
|
|
19
19
|
top: -.5rem;
|
|
20
20
|
right: -.5rem;
|
|
21
|
-
width: 1.25rem;
|
|
22
|
-
height: 1.25rem;
|
|
21
|
+
width: var(--slds-g-sizing-6, 1.25rem);
|
|
22
|
+
height: var(--slds-g-sizing-6, 1.25rem);
|
|
23
23
|
font-weight: var(--slds-g-font-weight-7, bold);
|
|
24
24
|
z-index: 1;
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.result-action_white-container {
|
|
2
|
-
background-color: white;
|
|
2
|
+
background-color: var(--slds-g-color-surface-1, white);
|
|
3
3
|
display: inline-block;
|
|
4
|
-
border-radius: var(--slds-g-
|
|
4
|
+
border-radius: var(--slds-g-radius-border-2, 0.25rem);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.result-action_button {
|
|
@@ -34,11 +34,14 @@ export const testInsight =
|
|
|
34
34
|
{page, options, search, configuration, insightSetup},
|
|
35
35
|
use
|
|
36
36
|
) => {
|
|
37
|
+
await search.mockSearchWithBaseResponse();
|
|
37
38
|
await page.goto(pageUrl);
|
|
38
39
|
configuration.configure(options);
|
|
39
40
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
40
|
-
await
|
|
41
|
-
|
|
41
|
+
await Promise.all([
|
|
42
|
+
search.waitForSearchResponse(),
|
|
43
|
+
search.performSearch(),
|
|
44
|
+
]);
|
|
42
45
|
await use(new ResultCopyToClipboard(page));
|
|
43
46
|
},
|
|
44
47
|
});
|
|
@@ -32,6 +32,7 @@ export const testSearch =
|
|
|
32
32
|
await use(new SearchObject(page, searchRequestRegex));
|
|
33
33
|
},
|
|
34
34
|
resultList: async ({page, options, configuration, search}, use) => {
|
|
35
|
+
await search.mockSearchWithBaseResponse();
|
|
35
36
|
await page.goto(pageUrl);
|
|
36
37
|
configuration.configure(options);
|
|
37
38
|
await search.waitForSearchResponse();
|
|
@@ -53,11 +54,14 @@ export const testInsight =
|
|
|
53
54
|
{page, options, search, configuration, insightSetup},
|
|
54
55
|
use
|
|
55
56
|
) => {
|
|
57
|
+
await search.mockSearchWithBaseResponse();
|
|
56
58
|
await page.goto(pageUrl);
|
|
57
59
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
58
60
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
59
|
-
await
|
|
60
|
-
|
|
61
|
+
await Promise.all([
|
|
62
|
+
search.waitForSearchResponse(),
|
|
63
|
+
search.performSearch(),
|
|
64
|
+
]);
|
|
61
65
|
await search.waitForSearchResultsVisible();
|
|
62
66
|
await use(new ResultListObject(page));
|
|
63
67
|
},
|
|
@@ -43,7 +43,8 @@ export const testSearch =
|
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
45
|
},
|
|
46
|
-
resultQuickview: async ({page, options, configuration}, use) => {
|
|
46
|
+
resultQuickview: async ({page, options, configuration, search}, use) => {
|
|
47
|
+
await search.mockSearchWithBaseResponse();
|
|
47
48
|
await page.goto(resultQuickviewUrl);
|
|
48
49
|
await configuration.configure(options);
|
|
49
50
|
await use(new ResultQuickviewObject(page));
|
|
@@ -69,11 +70,14 @@ export const testInsight =
|
|
|
69
70
|
{page, options, search, configuration, insightSetup},
|
|
70
71
|
use
|
|
71
72
|
) => {
|
|
73
|
+
await search.mockSearchWithBaseResponse();
|
|
72
74
|
await page.goto(resultQuickviewUrl);
|
|
73
75
|
await configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
74
76
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
75
|
-
await
|
|
76
|
-
|
|
77
|
+
await Promise.all([
|
|
78
|
+
search.waitForSearchResponse(),
|
|
79
|
+
search.performSearch(),
|
|
80
|
+
]);
|
|
77
81
|
await use(new ResultQuickviewObject(page));
|
|
78
82
|
},
|
|
79
83
|
});
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.quickview__result-date {
|
|
13
|
-
color: #3E3E3C;
|
|
13
|
+
color: var(--slds-g-color-on-surface-2, #3E3E3C);
|
|
14
14
|
font-weight: var(--slds-g-font-weight-4, normal);
|
|
15
15
|
font-size: var(--slds-g-font-scale-2, 15px);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.quickview__button-base:not([disabled]){
|
|
19
|
-
border-radius: 0.25rem;
|
|
20
|
-
color: var(--lwc-colorTextLinkActive, #0f2d5d);
|
|
19
|
+
border-radius: var(--slds-g-radius-border-2, 0.25rem);
|
|
20
|
+
color: var(--slds-s-link-color-active, var(--lwc-colorTextLinkActive, #0f2d5d));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.quickview__button-base:not([disabled]):hover {
|
|
24
|
-
background-color: #f6f7f9;
|
|
25
|
-
box-shadow: 0 0 0 0.25rem #f6f7f9;
|
|
24
|
+
background-color: var(--slds-g-color-surface-2, #f6f7f9);
|
|
25
|
+
box-shadow: 0 0 0 0.25rem var(--slds-g-color-surface-2, #f6f7f9);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.quickview-modal__footer {
|
|
29
|
-
background-color: white;
|
|
29
|
+
background-color: var(--slds-g-color-surface-1, white);
|
|
30
30
|
text-align: unset;
|
|
31
31
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.date__container{
|
|
12
12
|
font-size: .9em;
|
|
13
|
-
color
|
|
13
|
+
color: var(--slds-g-color-on-surface-2, #3E3E3C);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* max-width value comes from SLDS definition of `slds-medium-size`. "See https://www.lightningdesignsystem.com/utilities/grid/#Responsive-Layout-Options.*/
|
|
@@ -42,6 +42,7 @@ export const testSearch =
|
|
|
42
42
|
{page, options, configuration, search, urlHash},
|
|
43
43
|
use
|
|
44
44
|
) => {
|
|
45
|
+
await search.mockSearchWithBaseResponse();
|
|
45
46
|
await page.goto(
|
|
46
47
|
urlHash ? `${resultsPerPageUrl}#${urlHash}` : resultsPerPageUrl
|
|
47
48
|
);
|
|
@@ -64,11 +65,14 @@ export const testInsight =
|
|
|
64
65
|
{page, options, search, configuration, insightSetup},
|
|
65
66
|
use
|
|
66
67
|
) => {
|
|
68
|
+
await search.mockSearchWithBaseResponse();
|
|
67
69
|
await page.goto(resultsPerPageUrl);
|
|
68
70
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
69
71
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
70
|
-
await
|
|
71
|
-
|
|
72
|
+
await Promise.all([
|
|
73
|
+
search.waitForSearchResponse(),
|
|
74
|
+
search.performSearch(),
|
|
75
|
+
]);
|
|
72
76
|
await use(new ResultsPerPageObject(page));
|
|
73
77
|
},
|
|
74
78
|
});
|
|
@@ -48,6 +48,7 @@ export const testSearch = quanticBase.extend<QuanticSearchBoxE2ESearchFixtures>(
|
|
|
48
48
|
{page, options, configuration, search, urlHash, analytics},
|
|
49
49
|
use
|
|
50
50
|
) => {
|
|
51
|
+
await search.mockSearchWithBaseResponse();
|
|
51
52
|
await page.goto(urlHash ? `${pageUrl}#${urlHash}` : pageUrl);
|
|
52
53
|
|
|
53
54
|
configuration.configure(options);
|
|
@@ -70,9 +71,10 @@ export const testInsight =
|
|
|
70
71
|
await use(new InsightSetupObject(page));
|
|
71
72
|
},
|
|
72
73
|
searchBox: async (
|
|
73
|
-
{page, options, configuration, insightSetup, analytics},
|
|
74
|
+
{page, options, configuration, insightSetup, analytics, search},
|
|
74
75
|
use
|
|
75
76
|
) => {
|
|
77
|
+
await search.mockSearchWithBaseResponse();
|
|
76
78
|
await page.goto(pageUrl);
|
|
77
79
|
|
|
78
80
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.css
CHANGED
|
@@ -4,14 +4,6 @@
|
|
|
4
4
|
margin: inherit;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.searchbox__icon-container-left {
|
|
8
|
-
margin-left: 0.5rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.searchbox__icon-container-right {
|
|
12
|
-
margin-right: 0.5rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
7
|
/* This is to override some style from the slds-has-input and prevent */
|
|
16
8
|
/* the search icon from sliding down as the searchbox expands */
|
|
17
9
|
.searchbox__search-icon {
|
|
@@ -21,7 +13,7 @@
|
|
|
21
13
|
|
|
22
14
|
.searchbox__container {
|
|
23
15
|
overflow: visible;
|
|
24
|
-
border: var(--lwc-borderWidthThin, 1px) solid var(--lwc-brandAccessible, #0176d3);
|
|
16
|
+
border: var(--slds-g-sizing-border-1, var(--lwc-borderWidthThin, 1px)) solid var(--slds-g-color-accent-container-1, var(--lwc-brandAccessible, #0176d3));
|
|
25
17
|
}
|
|
26
18
|
|
|
27
19
|
.z-index-high {
|
|
@@ -43,7 +35,7 @@ textarea.searchbox__input {
|
|
|
43
35
|
|
|
44
36
|
.searchbox__submit-button {
|
|
45
37
|
border: none;
|
|
46
|
-
border-radius: 0 var(--lwc-borderRadiusMedium, 0.25rem) var(--lwc-borderRadiusMedium, 0.25rem) 0;
|
|
38
|
+
border-radius: 0 var(--slds-g-radius-border-2, var(--lwc-borderRadiusMedium, 0.25rem)) var(--slds-g-radius-border-2, var(--lwc-borderRadiusMedium, 0.25rem)) 0;
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
.searchbox__container-wrapper {
|
|
@@ -54,6 +46,6 @@ textarea.searchbox__input {
|
|
|
54
46
|
.searchbox_floating-container {
|
|
55
47
|
position: absolute;
|
|
56
48
|
width: 100%;
|
|
57
|
-
background-color: var(--lwc-colorBackgroundAlt, rgb(255, 255, 255));
|
|
58
|
-
border-radius: 0.25rem;
|
|
49
|
+
background-color: var(--slds-g-color-surface-1, var(--lwc-colorBackgroundAlt, rgb(255, 255, 255)));
|
|
50
|
+
border-radius: var(--slds-g-radius-border-2, 0.25rem);
|
|
59
51
|
}
|
package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class={searchBoxContainerClass} role="none">
|
|
10
10
|
<template if:true={withoutSubmitButton}>
|
|
11
11
|
<div
|
|
12
|
-
class="slds-grid slds-align_absolute-center searchbox__icon-container
|
|
12
|
+
class="slds-grid slds-align_absolute-center searchbox__icon-container slds-m-left_x-small"
|
|
13
13
|
>
|
|
14
14
|
<lightning-icon
|
|
15
15
|
class="slds-icon slds-input__icon slds-input__icon_left searchbox__search-icon"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
<template if:false={isQueryEmpty}>
|
|
44
44
|
<div
|
|
45
|
-
class="slds-grid slds-align_absolute-center searchbox__icon-container
|
|
45
|
+
class="slds-grid slds-align_absolute-center searchbox__icon-container slds-m-right_x-small"
|
|
46
46
|
>
|
|
47
47
|
<lightning-button-icon
|
|
48
48
|
onclick={clearInput}
|
|
@@ -59,6 +59,7 @@ export const testSearch =
|
|
|
59
59
|
},
|
|
60
60
|
use
|
|
61
61
|
) => {
|
|
62
|
+
await search.mockSearchWithBaseResponse();
|
|
62
63
|
await page.goto(searchBoxSuggestionsListUrl);
|
|
63
64
|
if (recentQueries.length > 0) {
|
|
64
65
|
await querySuggest.setRecentQueries(recentQueries);
|
|
@@ -94,9 +95,11 @@ export const testInsight =
|
|
|
94
95
|
querySuggest,
|
|
95
96
|
analytics,
|
|
96
97
|
recentQueries,
|
|
98
|
+
search,
|
|
97
99
|
},
|
|
98
100
|
use
|
|
99
101
|
) => {
|
|
102
|
+
await search.mockSearchWithBaseResponse();
|
|
100
103
|
await page.goto(searchBoxSuggestionsListUrl);
|
|
101
104
|
if (recentQueries.length > 0) {
|
|
102
105
|
await querySuggest.setRecentQueries(recentQueries);
|
|
@@ -43,8 +43,8 @@ export const testSearch =
|
|
|
43
43
|
) => {
|
|
44
44
|
const smartSnippetObject = new SmartSnippetObject(page);
|
|
45
45
|
|
|
46
|
-
await page.goto(pageUrl);
|
|
47
46
|
await search.mockSearchWithSmartSnippetResponse(data);
|
|
47
|
+
await page.goto(pageUrl);
|
|
48
48
|
|
|
49
49
|
configuration.configure(options);
|
|
50
50
|
await search.waitForSearchResponse();
|
|
@@ -77,13 +77,15 @@ export const testInsight =
|
|
|
77
77
|
) => {
|
|
78
78
|
const smartSnippetObject = new SmartSnippetObject(page);
|
|
79
79
|
|
|
80
|
-
await page.goto(pageUrl);
|
|
81
80
|
await search.mockSearchWithSmartSnippetResponse(data);
|
|
81
|
+
await page.goto(pageUrl);
|
|
82
82
|
|
|
83
83
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
84
84
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
85
|
-
await
|
|
86
|
-
|
|
85
|
+
await Promise.all([
|
|
86
|
+
search.waitForSearchResponse(),
|
|
87
|
+
search.performSearch(),
|
|
88
|
+
]);
|
|
87
89
|
await use(smartSnippetObject);
|
|
88
90
|
},
|
|
89
91
|
});
|
|
@@ -43,8 +43,8 @@ export const testSearch =
|
|
|
43
43
|
page
|
|
44
44
|
);
|
|
45
45
|
|
|
46
|
-
await page.goto(pageUrl);
|
|
47
46
|
await search.mockSearchWithSmartSnippetSuggestionsResponse(data);
|
|
47
|
+
await page.goto(pageUrl);
|
|
48
48
|
|
|
49
49
|
configuration.configure(options);
|
|
50
50
|
await search.waitForSearchResponse();
|
|
@@ -79,13 +79,15 @@ export const testInsight =
|
|
|
79
79
|
page
|
|
80
80
|
);
|
|
81
81
|
|
|
82
|
-
await page.goto(pageUrl);
|
|
83
82
|
await search.mockSearchWithSmartSnippetSuggestionsResponse(data);
|
|
83
|
+
await page.goto(pageUrl);
|
|
84
84
|
|
|
85
85
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
86
86
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
87
|
-
await
|
|
88
|
-
|
|
87
|
+
await Promise.all([
|
|
88
|
+
search.waitForSearchResponse(),
|
|
89
|
+
search.performSearch(),
|
|
90
|
+
]);
|
|
89
91
|
await use(smartSnippetSuggestionsObject);
|
|
90
92
|
},
|
|
91
93
|
});
|
|
@@ -33,6 +33,7 @@ export const testSearch = quanticBase.extend<QuanticSortE2ESearchFixtures>({
|
|
|
33
33
|
await use(new SearchObject(page, searchRequestRegex));
|
|
34
34
|
},
|
|
35
35
|
sort: async ({page, options, configuration, search, urlHash}, use) => {
|
|
36
|
+
await search.mockSearchWithBaseResponse();
|
|
36
37
|
await page.goto(urlHash ? `${sortUrl}#${urlHash}` : sortUrl);
|
|
37
38
|
configuration.configure(options);
|
|
38
39
|
await search.waitForSearchResponse();
|
|
@@ -49,11 +50,11 @@ export const testInsight = quanticBase.extend<QuanticSortE2EInsightFixtures>({
|
|
|
49
50
|
await use(new InsightSetupObject(page));
|
|
50
51
|
},
|
|
51
52
|
sort: async ({page, options, search, configuration, insightSetup}, use) => {
|
|
53
|
+
await search.mockSearchWithBaseResponse();
|
|
52
54
|
await page.goto(sortUrl);
|
|
53
55
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
54
56
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
55
|
-
await search.performSearch();
|
|
56
|
-
await search.waitForSearchResponse();
|
|
57
|
+
await Promise.all([search.waitForSearchResponse(), search.performSearch()]);
|
|
57
58
|
await use(new SortObject(page));
|
|
58
59
|
},
|
|
59
60
|
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.sort__header {
|
|
8
|
-
color: var(--lwc-colorTextActionLabel, darkslategray);
|
|
8
|
+
color: var(--slds-g-color-on-surface-1, var(--lwc-colorTextActionLabel, darkslategray));
|
|
9
9
|
padding-top: 6px;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.combobox--wide {
|
|
18
|
-
background: var(--lwc-colorBackgroundAlt, #ffffff);
|
|
19
|
-
border-radius: 0.25rem;
|
|
18
|
+
background: var(--slds-g-color-surface-1, var(--lwc-colorBackgroundAlt, #ffffff));
|
|
19
|
+
border-radius: var(--slds-g-radius-border-2, 0.25rem);
|
|
20
20
|
background-clip: padding-box;
|
|
21
21
|
-webkit-box-shadow: 0 2px 2px 0 rgb(0 0 0 / 10%);
|
|
22
22
|
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 10%);
|
|
@@ -39,7 +39,8 @@ export const testStandaloneSearchBox =
|
|
|
39
39
|
querySuggest: async ({page}, use) => {
|
|
40
40
|
await use(new QuerySuggestObject(page, querySuggestRegex));
|
|
41
41
|
},
|
|
42
|
-
searchBox: async ({page, options, configuration, urlHash}, use) => {
|
|
42
|
+
searchBox: async ({page, options, configuration, urlHash, search}, use) => {
|
|
43
|
+
await search.mockSearchWithBaseResponse();
|
|
43
44
|
await page.goto(
|
|
44
45
|
urlHash
|
|
45
46
|
? `${standaloneSearchBoxUrl}#${urlHash}`
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.stateful-button--unselected:hover,
|
|
20
20
|
.stateful-button--unselected:focus {
|
|
21
21
|
color: var(--neutral-color);
|
|
22
|
-
background-color: white;
|
|
22
|
+
background-color: var(--slds-g-color-surface-1, white);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.stateful-button--selected {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
.stateful-button--selected:focus {
|
|
33
33
|
border-color: var(--main-color);
|
|
34
34
|
color: var(--main-color);
|
|
35
|
-
background-color: white;
|
|
35
|
+
background-color: var(--slds-g-color-surface-1, white);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.stateful-button__icon--selected {
|
|
@@ -27,6 +27,7 @@ export const testSearch = quanticBase.extend<QuanticTabE2EFixtures>({
|
|
|
27
27
|
await use(new SearchObject(page, searchRequestRegex));
|
|
28
28
|
},
|
|
29
29
|
tab: async ({page, options, configuration, search, urlHash}, use) => {
|
|
30
|
+
await search.mockSearchWithBaseResponse();
|
|
30
31
|
await page.goto(urlHash ? `${pageUrl}#${urlHash}` : pageUrl);
|
|
31
32
|
configuration.configure(options);
|
|
32
33
|
await search.waitForSearchResponse();
|
|
@@ -44,11 +45,14 @@ export const testInsight = quanticBase.extend<QuanticTabE2EFixtures>({
|
|
|
44
45
|
await use(new InsightSetupObject(page));
|
|
45
46
|
},
|
|
46
47
|
tab: async ({page, options, search, configuration, insightSetup}, use) => {
|
|
48
|
+
await search.mockSearchWithBaseResponse();
|
|
47
49
|
await page.goto(pageUrl);
|
|
48
50
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
49
51
|
await insightSetup!.waitForInsightInterfaceInitialization();
|
|
50
|
-
await
|
|
51
|
-
|
|
52
|
+
await Promise.all([
|
|
53
|
+
search.waitForSearchResponse(),
|
|
54
|
+
search.performSearch(),
|
|
55
|
+
]);
|
|
52
56
|
await use(new TabObject(page, 'insight'));
|
|
53
57
|
},
|
|
54
58
|
});
|
|
@@ -32,6 +32,7 @@ export const testSearch = quanticBase.extend<QuanticTabBarE2ESearchFixtures>({
|
|
|
32
32
|
await use(new SearchObject(page, searchRequestRegex));
|
|
33
33
|
},
|
|
34
34
|
tabBar: async ({page, options, configuration, search}, use) => {
|
|
35
|
+
await search.mockSearchWithBaseResponse();
|
|
35
36
|
await page.goto(pageUrl);
|
|
36
37
|
configuration.configure(options);
|
|
37
38
|
await search.waitForSearchResponse();
|
|
@@ -49,11 +50,14 @@ export const testInsight = quanticBase.extend<QuanticTabBarE2EInsightFixtures>({
|
|
|
49
50
|
await use(new InsightSetupObject(page));
|
|
50
51
|
},
|
|
51
52
|
tabBar: async ({page, options, search, configuration, insightSetup}, use) => {
|
|
53
|
+
await search.mockSearchWithBaseResponse();
|
|
52
54
|
await page.goto(pageUrl);
|
|
53
55
|
configuration.configure({...options, useCase: useCaseEnum.insight});
|
|
54
56
|
await insightSetup.waitForInsightInterfaceInitialization();
|
|
55
|
-
await
|
|
56
|
-
|
|
57
|
+
await Promise.all([
|
|
58
|
+
search.waitForSearchResponse(),
|
|
59
|
+
search.performSearch(),
|
|
60
|
+
]);
|
|
57
61
|
await use(new TabBarObject(page));
|
|
58
62
|
},
|
|
59
63
|
});
|
|
@@ -116,6 +116,8 @@ useCaseTestCases.forEach((useCase) => {
|
|
|
116
116
|
const expectedTabValue = 'Tab 4';
|
|
117
117
|
|
|
118
118
|
const searchResponsePromise = search.waitForSearchResponse();
|
|
119
|
+
const uaRequestPromise =
|
|
120
|
+
tabBar.waitForDropdownOptionSelectUaAnalytics();
|
|
119
121
|
|
|
120
122
|
await tabBar.clickMoreButton();
|
|
121
123
|
const dropdownOptionsCount = await tabBar.allDropdownOptions.count();
|
|
@@ -140,8 +142,7 @@ useCaseTestCases.forEach((useCase) => {
|
|
|
140
142
|
})
|
|
141
143
|
);
|
|
142
144
|
|
|
143
|
-
const uaRequest =
|
|
144
|
-
await tabBar.waitForDropdownOptionSelectUaAnalytics();
|
|
145
|
+
const uaRequest = await uaRequestPromise;
|
|
145
146
|
const requestBody = uaRequest.postDataJSON?.();
|
|
146
147
|
|
|
147
148
|
expect(requestBody).not.toBeNull();
|