@coveo/quantic 3.44.1 → 3.44.3
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/README.md +12 -3
- package/force-app/main/default/classes/OrganizationEndpointsTest.cls +71 -15
- package/force-app/main/default/classes/RecommendationsControllerTest.cls +1 -1
- package/force-app/main/default/lwc/quanticCitation/quanticCitation.js +2 -2
- package/force-app/main/default/lwc/quanticHeadlessLoader/quanticHeadlessLoader.js +158 -87
- package/force-app/main/default/lwc/quanticTabBar/quanticTabBar.js +148 -125
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +16 -16
- 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/force-app/main/default/staticresources/dompurify/purify.min.js +2 -2
- package/package.json +43 -41
- package/force-app/main/default/lwc/quanticAriaLive/__tests__/quanticAriaLive.test.js +0 -106
- package/force-app/main/default/lwc/quanticBreadcrumbManager/__tests__/quanticBreadcrumbManager.test.js +0 -752
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/data.ts +0 -130
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/fixture.ts +0 -87
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/pageObject.ts +0 -282
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts +0 -208
- package/force-app/main/default/lwc/quanticCarousel/__tests__/quanticCarousel.test.js +0 -262
- package/force-app/main/default/lwc/quanticCaseClassification/__tests__/quanticCaseClassification.test.js +0 -819
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/data.ts +0 -23
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/fixture.ts +0 -51
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/pageObject.ts +0 -152
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/quanticCaseClassification.e2e.ts +0 -269
- package/force-app/main/default/lwc/quanticCategoryFacet/__tests__/quanticCategoryFacet.test.js +0 -1183
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/data.ts +0 -91
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/fixture.ts +0 -79
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/pageObject.ts +0 -55
- package/force-app/main/default/lwc/quanticCategoryFacet/e2e/quanticCategoryFacet.e2e.ts +0 -219
- package/force-app/main/default/lwc/quanticCitation/__tests__/quanticCitation.test.js +0 -581
- package/force-app/main/default/lwc/quanticColoredResultBadge/__tests__/quanticColoredResultBadge.test.js +0 -212
- package/force-app/main/default/lwc/quanticDateFacet/__tests__/quanticDateFacet.test.js +0 -688
- package/force-app/main/default/lwc/quanticDateFacet/e2e/data.ts +0 -44
- package/force-app/main/default/lwc/quanticDateFacet/e2e/fixture.ts +0 -72
- package/force-app/main/default/lwc/quanticDateFacet/e2e/pageObject.ts +0 -27
- package/force-app/main/default/lwc/quanticDateFacet/e2e/quanticDateFacet.e2e.ts +0 -167
- package/force-app/main/default/lwc/quanticDidYouMean/__tests__/quanticDidYouMean.test.js +0 -348
- package/force-app/main/default/lwc/quanticDidYouMean/e2e/data.ts +0 -48
- package/force-app/main/default/lwc/quanticDidYouMean/e2e/fixture.ts +0 -84
- package/force-app/main/default/lwc/quanticDidYouMean/e2e/pageObject.ts +0 -173
- package/force-app/main/default/lwc/quanticDidYouMean/e2e/quanticDidYouMean.e2e.ts +0 -219
- package/force-app/main/default/lwc/quanticDocumentSuggestion/__tests__/quanticDocumentSuggestion.test.js +0 -404
- package/force-app/main/default/lwc/quanticDocumentSuggestion/e2e/fixture.ts +0 -38
- package/force-app/main/default/lwc/quanticDocumentSuggestion/e2e/pageObject.ts +0 -52
- package/force-app/main/default/lwc/quanticDocumentSuggestion/e2e/quanticDocumentSuggestion.e2e.ts +0 -102
- package/force-app/main/default/lwc/quanticFacet/__tests__/quanticFacet.test.js +0 -1105
- package/force-app/main/default/lwc/quanticFacet/e2e/data.ts +0 -62
- package/force-app/main/default/lwc/quanticFacet/e2e/fixture.ts +0 -78
- package/force-app/main/default/lwc/quanticFacet/e2e/pageObject.ts +0 -67
- package/force-app/main/default/lwc/quanticFacet/e2e/quanticFacet.e2e.ts +0 -242
- package/force-app/main/default/lwc/quanticFacetCaption/__tests__/quanticFacetCaption.test.js +0 -28
- package/force-app/main/default/lwc/quanticFacetManager/__tests__/quanticFacetManager.test.js +0 -178
- package/force-app/main/default/lwc/quanticFacetManager/e2e/data.ts +0 -59
- package/force-app/main/default/lwc/quanticFacetManager/e2e/fixture.ts +0 -75
- package/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts +0 -23
- package/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts +0 -82
- package/force-app/main/default/lwc/quanticFeedback/__tests__/quanticFeedback.test.js +0 -403
- package/force-app/main/default/lwc/quanticFeedbackModal/__tests__/quanticFeedbackModal.test.js +0 -448
- package/force-app/main/default/lwc/quanticFeedbackModalQna/__tests__/quanticFeedbackModalQna.test.js +0 -298
- package/force-app/main/default/lwc/quanticFoldedResultList/__tests__/quanticFoldedResultList.test.js +0 -323
- package/force-app/main/default/lwc/quanticFoldedResultList/e2e/fixture.ts +0 -74
- package/force-app/main/default/lwc/quanticFoldedResultList/e2e/pageObject.ts +0 -81
- package/force-app/main/default/lwc/quanticFoldedResultList/e2e/quanticFoldedResultList.e2e.ts +0 -69
- package/force-app/main/default/lwc/quanticGeneratedAnswer/__tests__/quanticGeneratedAnswer.test.js +0 -1575
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/agentData.ts +0 -279
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/data.ts +0 -56
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/fixture-agent.ts +0 -77
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/fixture.ts +0 -194
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/pageObject.ts +0 -599
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts +0 -333
- package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswerAgent.e2e.ts +0 -298
- package/force-app/main/default/lwc/quanticGeneratedAnswerBody/__tests__/quanticGeneratedAnswerBody.test.js +0 -418
- package/force-app/main/default/lwc/quanticGeneratedAnswerContent/__tests__/quanticGeneratedAnswerContent.test.js +0 -447
- package/force-app/main/default/lwc/quanticGeneratedAnswerCopyToClipboard/__tests__/quanticGeneratedAnswerCopyToClipboard.test.js +0 -129
- package/force-app/main/default/lwc/quanticGeneratedAnswerFollowUpInput/__tests__/quanticGeneratedAnswerFollowUpInput.test.js +0 -466
- package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/__tests__/quanticGeneratedAnswerStreamOfThought.test.js +0 -402
- package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/__tests__/stepsUtils.test.js +0 -118
- package/force-app/main/default/lwc/quanticGeneratedAnswerThread/__tests__/quanticGeneratedAnswerThread.test.js +0 -285
- package/force-app/main/default/lwc/quanticHeading/__tests__/quanticHeading.test.js +0 -71
- package/force-app/main/default/lwc/quanticHeadlessLoader/__tests__/quanticHeadlessLoader.test.js +0 -651
- package/force-app/main/default/lwc/quanticInsightInterface/__tests__/quanticInsightInterface.test.js +0 -194
- package/force-app/main/default/lwc/quanticInsightSummary/__tests__/quanticInsightSummary.test.js +0 -230
- package/force-app/main/default/lwc/quanticModal/__tests__/quanticModal.test.js +0 -205
- package/force-app/main/default/lwc/quanticNotifications/__tests__/quanticNotifications.test.js +0 -309
- package/force-app/main/default/lwc/quanticNotifications/e2e/fixture.ts +0 -62
- package/force-app/main/default/lwc/quanticNotifications/e2e/pageObject.ts +0 -55
- package/force-app/main/default/lwc/quanticNotifications/e2e/quanticNotifications.e2e.ts +0 -47
- package/force-app/main/default/lwc/quanticNumericFacet/__tests__/quanticNumericFacet.test.js +0 -953
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/data.ts +0 -48
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/fixture.ts +0 -75
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/pageObject.ts +0 -59
- package/force-app/main/default/lwc/quanticNumericFacet/e2e/quanticNumericFacet.e2e.ts +0 -186
- package/force-app/main/default/lwc/quanticPager/__tests__/quanticPager.test.js +0 -430
- package/force-app/main/default/lwc/quanticPager/e2e/fixture.ts +0 -65
- package/force-app/main/default/lwc/quanticPager/e2e/pageObject.ts +0 -69
- package/force-app/main/default/lwc/quanticPager/e2e/quanticPager.e2e.ts +0 -106
- package/force-app/main/default/lwc/quanticPlaceholder/__tests__/quanticPlaceholder.test.js +0 -47
- package/force-app/main/default/lwc/quanticQuickviewContent/__tests__/data/defaultTestCase.json +0 -13
- package/force-app/main/default/lwc/quanticQuickviewContent/__tests__/data/youtubeTestCase.json +0 -14
- package/force-app/main/default/lwc/quanticQuickviewContent/__tests__/quanticQuickviewContent.test.js +0 -82
- package/force-app/main/default/lwc/quanticRadioButtonsGroup/__tests__/quanticRadioButtonsGroup.test.js +0 -273
- package/force-app/main/default/lwc/quanticRecentQueriesList/__tests__/quanticRecentQueriesList.test.js +0 -448
- package/force-app/main/default/lwc/quanticRecentQueriesList/e2e/fixture.ts +0 -43
- package/force-app/main/default/lwc/quanticRecentQueriesList/e2e/pageObject.ts +0 -55
- package/force-app/main/default/lwc/quanticRecentQueriesList/e2e/quanticRecentQueriesList.e2e.ts +0 -93
- package/force-app/main/default/lwc/quanticRecentResultsList/__tests__/quanticRecentResultsList.test.js +0 -516
- package/force-app/main/default/lwc/quanticRecentResultsList/e2e/fixture.ts +0 -43
- package/force-app/main/default/lwc/quanticRecentResultsList/e2e/pageObject.ts +0 -61
- package/force-app/main/default/lwc/quanticRecentResultsList/e2e/quanticRecentResultsList.e2e.ts +0 -48
- package/force-app/main/default/lwc/quanticRecommendationList/__tests__/quanticRecommendationList.test.js +0 -491
- package/force-app/main/default/lwc/quanticRecommendationList/e2e/fixture.ts +0 -36
- package/force-app/main/default/lwc/quanticRecommendationList/e2e/pageObject.ts +0 -52
- package/force-app/main/default/lwc/quanticRecommendationList/e2e/quanticRecommendationList.e2e.ts +0 -53
- package/force-app/main/default/lwc/quanticRefineModalContent/__tests__/quanticRefineModalContent.test.js +0 -747
- package/force-app/main/default/lwc/quanticRefineToggle/__tests__/quanticRefineToggle.test.js +0 -544
- package/force-app/main/default/lwc/quanticResultAction/__tests__/quanticResultAction.test.js +0 -262
- package/force-app/main/default/lwc/quanticResultActionBar/__tests__/quanticResultActionBar.test.js +0 -141
- package/force-app/main/default/lwc/quanticResultChildren/__tests__/quanticResultChildren.test.js +0 -340
- package/force-app/main/default/lwc/quanticResultCopyToClipboard/__tests__/quanticResultCopyToClipboard.test.js +0 -300
- package/force-app/main/default/lwc/quanticResultCopyToClipboard/e2e/fixture.ts +0 -49
- package/force-app/main/default/lwc/quanticResultCopyToClipboard/e2e/pageObject.ts +0 -49
- package/force-app/main/default/lwc/quanticResultCopyToClipboard/e2e/quanticResultCopyToClipboard.e2e.ts +0 -40
- package/force-app/main/default/lwc/quanticResultDate/__tests__/quanticResultDate.test.js +0 -144
- package/force-app/main/default/lwc/quanticResultField/__tests__/quanticResultField.test.js +0 -120
- package/force-app/main/default/lwc/quanticResultHighlightedTextField/__tests__/quanticResultHighlightedTextField.test.js +0 -209
- package/force-app/main/default/lwc/quanticResultLink/__tests__/quanticResultLink.test.js +0 -302
- package/force-app/main/default/lwc/quanticResultList/__tests__/quanticResultList.test.js +0 -342
- package/force-app/main/default/lwc/quanticResultList/e2e/fixture.ts +0 -70
- package/force-app/main/default/lwc/quanticResultList/e2e/pageObject.ts +0 -81
- package/force-app/main/default/lwc/quanticResultList/e2e/quanticResultList.e2e.ts +0 -69
- package/force-app/main/default/lwc/quanticResultMultiValueText/__tests__/quanticResultMultiValueText.test.js +0 -235
- package/force-app/main/default/lwc/quanticResultNumber/__tests__/quanticResultNumber.test.js +0 -144
- package/force-app/main/default/lwc/quanticResultPrintableUri/__tests__/quanticResultPrintableUri.test.js +0 -324
- package/force-app/main/default/lwc/quanticResultQuickview/__tests__/quanticResultQuickview.test.js +0 -308
- package/force-app/main/default/lwc/quanticResultQuickview/e2e/fixture.ts +0 -85
- package/force-app/main/default/lwc/quanticResultQuickview/e2e/pageObject.ts +0 -38
- package/force-app/main/default/lwc/quanticResultQuickview/e2e/quanticResultQuickView.e2e.ts +0 -66
- package/force-app/main/default/lwc/quanticResultTemplate/__tests__/quanticResultTemplate.test.js +0 -90
- package/force-app/main/default/lwc/quanticResultText/__tests__/quanticResultText.test.js +0 -155
- package/force-app/main/default/lwc/quanticResultsPerPage/__tests__/quanticResultsPerPage.test.js +0 -464
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/fixture.ts +0 -78
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/pageObject.ts +0 -85
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts +0 -97
- package/force-app/main/default/lwc/quanticSearchBox/__tests__/quanticSearchBox.test.js +0 -487
- package/force-app/main/default/lwc/quanticSearchBox/e2e/fixture.ts +0 -86
- package/force-app/main/default/lwc/quanticSearchBox/e2e/pageObject.ts +0 -45
- package/force-app/main/default/lwc/quanticSearchBox/e2e/quanticSearchBox.e2e.ts +0 -159
- package/force-app/main/default/lwc/quanticSearchBoxInput/__tests__/quanticSearchBoxInput.test.js +0 -743
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/__tests__/quanticSearchBoxSuggestionsList.test.js +0 -571
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/e2e/fixture.ts +0 -113
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/e2e/pageObject.ts +0 -113
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/e2e/quanticSearchBoxSuggestionsList.e2e.ts +0 -282
- package/force-app/main/default/lwc/quanticSmartSnippet/__tests__/quanticSmartSnippet.test.js +0 -341
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/data.ts +0 -21
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts +0 -93
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/pageObject.ts +0 -196
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts +0 -168
- package/force-app/main/default/lwc/quanticSmartSnippetAnswer/__tests__/quanticSmartSnippetAnswer.test.js +0 -126
- package/force-app/main/default/lwc/quanticSmartSnippetSource/__tests__/quanticSmartSnippetSource.test.js +0 -290
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/__tests__/quanticSmartSnippetSuggestions.test.js +0 -329
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/data.ts +0 -31
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/fixture.ts +0 -95
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/pageObject.ts +0 -160
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/quanticSmartSnippetSuggestions.e2e.ts +0 -127
- package/force-app/main/default/lwc/quanticSort/__tests__/quanticSort.test.js +0 -416
- package/force-app/main/default/lwc/quanticSort/e2e/fixture.ts +0 -62
- package/force-app/main/default/lwc/quanticSort/e2e/pageObject.ts +0 -100
- package/force-app/main/default/lwc/quanticSort/e2e/quanticSort.e2e.ts +0 -86
- package/force-app/main/default/lwc/quanticSourceCitations/__tests__/quanticSourceCitations.test.js +0 -156
- package/force-app/main/default/lwc/quanticStandaloneSearchBox/__tests__/quanticStandaloneSearchBox.test.js +0 -387
- package/force-app/main/default/lwc/quanticStandaloneSearchBox/e2e/fixture.ts +0 -54
- package/force-app/main/default/lwc/quanticStandaloneSearchBox/e2e/pageObject.ts +0 -54
- package/force-app/main/default/lwc/quanticStandaloneSearchBox/e2e/quanticStandaloneSearchBox.e2e.ts +0 -72
- package/force-app/main/default/lwc/quanticStatefulButton/__tests__/quanticStatefulButton.test.js +0 -222
- package/force-app/main/default/lwc/quanticSummary/__tests__/quanticSummary.test.js +0 -244
- package/force-app/main/default/lwc/quanticTab/__tests__/quanticTab.test.js +0 -333
- package/force-app/main/default/lwc/quanticTab/e2e/fixture.ts +0 -60
- package/force-app/main/default/lwc/quanticTab/e2e/pageObject.ts +0 -68
- package/force-app/main/default/lwc/quanticTab/e2e/quanticTab.e2e.ts +0 -72
- package/force-app/main/default/lwc/quanticTabBar/__tests__/quanticTabBar.test.js +0 -331
- package/force-app/main/default/lwc/quanticTabBar/e2e/fixture.ts +0 -65
- package/force-app/main/default/lwc/quanticTabBar/e2e/pageObject.ts +0 -80
- package/force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts +0 -172
- package/force-app/main/default/lwc/quanticThreadItem/__tests__/quanticThreadItem.test.js +0 -314
- package/force-app/main/default/lwc/quanticTimeframeFacet/__tests__/quanticTimeframeFacet.test.js +0 -1059
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/data.ts +0 -66
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/fixture.ts +0 -74
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/pageObject.ts +0 -43
- package/force-app/main/default/lwc/quanticTimeframeFacet/e2e/quanticTimeframeFacet.e2e.ts +0 -184
- package/force-app/main/default/lwc/quanticTooltip/__tests__/quanticTooltip.test.js +0 -107
- package/force-app/main/default/lwc/quanticUserAction/__tests__/quanticUserAction.test.js +0 -427
- package/force-app/main/default/lwc/quanticUserActionsSession/__tests__/quanticUserActionsSession.test.js +0 -269
- package/force-app/main/default/lwc/quanticUserActionsTimeline/__tests__/data/userActionsState.json +0 -89
- package/force-app/main/default/lwc/quanticUserActionsTimeline/__tests__/quanticUserActionsTimeline.test.js +0 -511
- package/force-app/main/default/lwc/quanticUserActionsToggle/__tests__/quanticUserActionsToggle.test.js +0 -229
- package/force-app/main/default/lwc/quanticUserActionsToggle/e2e/data.ts +0 -32
- package/force-app/main/default/lwc/quanticUserActionsToggle/e2e/fixture.ts +0 -32
- package/force-app/main/default/lwc/quanticUserActionsToggle/e2e/pageObject.ts +0 -71
- package/force-app/main/default/lwc/quanticUserActionsToggle/e2e/quanticUserActionsToggle.e2e.ts +0 -39
- package/force-app/main/default/lwc/quanticUtils/__tests__/accessibilityUtils.test.js +0 -214
- package/force-app/main/default/lwc/quanticUtils/__tests__/citationAnchoringUtils.test.js +0 -84
- package/force-app/main/default/lwc/quanticUtils/__tests__/facetDependenciesUtils.test.js +0 -92
- package/force-app/main/default/lwc/quanticUtils/__tests__/facetStoreUtils.test.js +0 -86
- package/force-app/main/default/lwc/quanticUtils/__tests__/markdownUtils.test.js +0 -109
- package/force-app/main/default/lwc/quanticUtils/__tests__/quanticUtils.test.js +0 -233
- package/force-app/main/default/lwc/quanticUtils/__tests__/timeAndDateUtils.test.js +0 -22
- package/force-app/main/default/lwc/quanticViewedByCustomerBadge/__tests__/quanticViewedByCustomerBadge.test.js +0 -131
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import {buildCreateTestComponent, cleanup, flushPromises} from 'c/testUtils';
|
|
2
|
-
import QuanticGeneratedAnswerStreamOfThought from '../quanticGeneratedAnswerStreamOfThought';
|
|
3
|
-
|
|
4
|
-
jest.mock(
|
|
5
|
-
'@salesforce/label/c.quantic_AgentGenerationStepSearchQuery',
|
|
6
|
-
() => ({default: 'Searching for {{0}}.'}),
|
|
7
|
-
{
|
|
8
|
-
virtual: true,
|
|
9
|
-
}
|
|
10
|
-
);
|
|
11
|
-
jest.mock(
|
|
12
|
-
'@salesforce/label/c.quantic_AgentGenerationStepSearchQueryCompleted',
|
|
13
|
-
() => ({default: 'Searched for {{0}}'}),
|
|
14
|
-
{
|
|
15
|
-
virtual: true,
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
const selectors = {
|
|
20
|
-
stepItem: '[data-testid="step-item"]',
|
|
21
|
-
spinner: '[data-testid="spinner"]',
|
|
22
|
-
checkmark: '[data-testid="checkmark"]',
|
|
23
|
-
stepLabel: '[data-testid="step-label"]',
|
|
24
|
-
collapseButton: '[data-testid="collapse-button"]',
|
|
25
|
-
collapsedSummary: '[data-testid="collapsed-summary"]',
|
|
26
|
-
collapsedSummaryLabel: '[data-testid="collapsed-summary-label"]',
|
|
27
|
-
chevronUp: '[data-testid="chevron-up"]',
|
|
28
|
-
chevronDown: '[data-testid="chevron-down"]',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const createTestComponent = buildCreateTestComponent(
|
|
32
|
-
QuanticGeneratedAnswerStreamOfThought,
|
|
33
|
-
'c-quantic-generated-answer-stream-of-thought',
|
|
34
|
-
{agentSteps: [], isStreaming: false}
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
describe('quantic generated answer stream of thought component', () => {
|
|
38
|
-
afterEach(() => {
|
|
39
|
-
cleanup();
|
|
40
|
-
});
|
|
41
|
-
describe('during streaming', () => {
|
|
42
|
-
it('should render nothing when there are no steps', async () => {
|
|
43
|
-
const element = createTestComponent({
|
|
44
|
-
agentSteps: [],
|
|
45
|
-
isStreaming: true,
|
|
46
|
-
});
|
|
47
|
-
await flushPromises();
|
|
48
|
-
|
|
49
|
-
expect(element.shadowRoot.firstChild).toBeNull();
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it('should show all steps progressively', async () => {
|
|
53
|
-
const element = createTestComponent({
|
|
54
|
-
agentSteps: [
|
|
55
|
-
{name: 'thinking', status: 'completed'},
|
|
56
|
-
{name: 'searching', status: 'active'},
|
|
57
|
-
],
|
|
58
|
-
isStreaming: true,
|
|
59
|
-
});
|
|
60
|
-
await flushPromises();
|
|
61
|
-
|
|
62
|
-
const stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
63
|
-
expect(stepItems).toHaveLength(2);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
it('should render steps in the correct order', async () => {
|
|
67
|
-
const element = createTestComponent({
|
|
68
|
-
agentSteps: [
|
|
69
|
-
{name: 'thinking', status: 'completed', startedAt: 0},
|
|
70
|
-
{name: 'searching', status: 'completed', startedAt: 10},
|
|
71
|
-
{name: 'thinking', status: 'completed', startedAt: 20},
|
|
72
|
-
{name: 'searching', status: 'completed', startedAt: 30},
|
|
73
|
-
{name: 'thinking', status: 'completed', startedAt: 40},
|
|
74
|
-
{name: 'answering', status: 'active', startedAt: 30},
|
|
75
|
-
],
|
|
76
|
-
isStreaming: true,
|
|
77
|
-
});
|
|
78
|
-
await flushPromises();
|
|
79
|
-
|
|
80
|
-
const stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
81
|
-
const names = Array.from(stepItems).map((el) =>
|
|
82
|
-
el.getAttribute('data-step-name')
|
|
83
|
-
);
|
|
84
|
-
expect(names).toEqual([
|
|
85
|
-
'thinking-before-search',
|
|
86
|
-
'searching',
|
|
87
|
-
'thinking-after-search',
|
|
88
|
-
'searching',
|
|
89
|
-
'thinking-after-search',
|
|
90
|
-
'answering',
|
|
91
|
-
]);
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
it('should show checkmarks for completed steps and spinners for active steps', async () => {
|
|
95
|
-
const element = createTestComponent({
|
|
96
|
-
agentSteps: [
|
|
97
|
-
{name: 'thinking', status: 'completed'},
|
|
98
|
-
{name: 'searching', status: 'active'},
|
|
99
|
-
],
|
|
100
|
-
isStreaming: true,
|
|
101
|
-
});
|
|
102
|
-
await flushPromises();
|
|
103
|
-
|
|
104
|
-
const checkmarks = element.shadowRoot.querySelectorAll(
|
|
105
|
-
selectors.checkmark
|
|
106
|
-
);
|
|
107
|
-
const spinners = element.shadowRoot.querySelectorAll(selectors.spinner);
|
|
108
|
-
expect(checkmarks).toHaveLength(1);
|
|
109
|
-
expect(spinners).toHaveLength(1);
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
it('should not show a collapse button', async () => {
|
|
113
|
-
const element = createTestComponent({
|
|
114
|
-
agentSteps: [{name: 'thinking', status: 'active'}],
|
|
115
|
-
isStreaming: true,
|
|
116
|
-
});
|
|
117
|
-
await flushPromises();
|
|
118
|
-
|
|
119
|
-
const collapseButton = element.shadowRoot.querySelector(
|
|
120
|
-
selectors.collapseButton
|
|
121
|
-
);
|
|
122
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
123
|
-
selectors.collapsedSummary
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
expect(collapseButton).toBeNull();
|
|
127
|
-
expect(collapsedSummary).toBeNull();
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
it('should render a searching-with-query step when toolCall has a query', async () => {
|
|
131
|
-
const element = createTestComponent({
|
|
132
|
-
agentSteps: [
|
|
133
|
-
{
|
|
134
|
-
name: 'searching',
|
|
135
|
-
status: 'active',
|
|
136
|
-
startedAt: 0,
|
|
137
|
-
toolCalls: [
|
|
138
|
-
{
|
|
139
|
-
toolCallName: 'search',
|
|
140
|
-
toolCallId: 'tc-1',
|
|
141
|
-
startedAt: 0,
|
|
142
|
-
status: 'active',
|
|
143
|
-
type: 'search',
|
|
144
|
-
toolCallArgs: {q: 'how to reset password'},
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
isStreaming: true,
|
|
150
|
-
});
|
|
151
|
-
await flushPromises();
|
|
152
|
-
|
|
153
|
-
const stepItem = element.shadowRoot.querySelector(selectors.stepItem);
|
|
154
|
-
expect(stepItem.getAttribute('data-step-name')).toBe(
|
|
155
|
-
'searching-with-query'
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
const stepLabel = element.shadowRoot.querySelector(selectors.stepLabel);
|
|
159
|
-
expect(stepLabel.textContent).toContain('how to reset password');
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
it('should expand multiple search toolCalls into separate step items', async () => {
|
|
163
|
-
const element = createTestComponent({
|
|
164
|
-
agentSteps: [
|
|
165
|
-
{
|
|
166
|
-
name: 'searching',
|
|
167
|
-
status: 'completed',
|
|
168
|
-
startedAt: 0,
|
|
169
|
-
toolCalls: [
|
|
170
|
-
{
|
|
171
|
-
toolCallName: 'search',
|
|
172
|
-
toolCallId: 'tc-1',
|
|
173
|
-
startedAt: 0,
|
|
174
|
-
finishedAt: 1,
|
|
175
|
-
status: 'completed',
|
|
176
|
-
type: 'search',
|
|
177
|
-
toolCallArgs: {q: 'What is Quantic'},
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
toolCallName: 'search',
|
|
181
|
-
toolCallId: 'tc-2',
|
|
182
|
-
startedAt: 1,
|
|
183
|
-
finishedAt: 2,
|
|
184
|
-
status: 'completed',
|
|
185
|
-
type: 'search',
|
|
186
|
-
toolCallArgs: {q: 'What is Atomic'},
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
isStreaming: true,
|
|
192
|
-
});
|
|
193
|
-
await flushPromises();
|
|
194
|
-
|
|
195
|
-
const stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
196
|
-
expect(stepItems).toHaveLength(2);
|
|
197
|
-
stepItems.forEach((item) =>
|
|
198
|
-
expect(item.getAttribute('data-step-name')).toBe('searching-with-query')
|
|
199
|
-
);
|
|
200
|
-
|
|
201
|
-
const stepLabelsText = Array.from(
|
|
202
|
-
element.shadowRoot.querySelectorAll(selectors.stepLabel)
|
|
203
|
-
)
|
|
204
|
-
.map((el) => el.textContent ?? '')
|
|
205
|
-
.join(' ');
|
|
206
|
-
expect(stepLabelsText).toContain('What is Quantic');
|
|
207
|
-
expect(stepLabelsText).toContain('What is Atomic');
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
describe('after streaming completes', () => {
|
|
212
|
-
const multipleSteps = [
|
|
213
|
-
{name: 'thinking', status: 'completed'},
|
|
214
|
-
{name: 'searching', status: 'completed'},
|
|
215
|
-
{name: 'thinking', status: 'completed'},
|
|
216
|
-
{name: 'answering', status: 'active'},
|
|
217
|
-
];
|
|
218
|
-
|
|
219
|
-
it('should auto-collapse to show only the last step', async () => {
|
|
220
|
-
const element = createTestComponent({
|
|
221
|
-
agentSteps: multipleSteps,
|
|
222
|
-
isStreaming: true,
|
|
223
|
-
});
|
|
224
|
-
await flushPromises();
|
|
225
|
-
let collapsedSummary = element.shadowRoot.querySelector(
|
|
226
|
-
selectors.collapsedSummary
|
|
227
|
-
);
|
|
228
|
-
let stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
229
|
-
|
|
230
|
-
expect(collapsedSummary).toBeNull();
|
|
231
|
-
expect(stepItems).toHaveLength(multipleSteps.length);
|
|
232
|
-
|
|
233
|
-
element.isStreaming = false;
|
|
234
|
-
element.agentSteps = [
|
|
235
|
-
{name: 'thinking', status: 'completed'},
|
|
236
|
-
{name: 'searching', status: 'completed'},
|
|
237
|
-
{name: 'thinking', status: 'completed'},
|
|
238
|
-
{name: 'answering', status: 'completed'},
|
|
239
|
-
];
|
|
240
|
-
await flushPromises();
|
|
241
|
-
|
|
242
|
-
collapsedSummary = element.shadowRoot.querySelector(
|
|
243
|
-
selectors.collapsedSummary
|
|
244
|
-
);
|
|
245
|
-
stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
246
|
-
const summaryLabel = element.shadowRoot.querySelector(
|
|
247
|
-
selectors.collapsedSummaryLabel
|
|
248
|
-
);
|
|
249
|
-
const checkmark = collapsedSummary.querySelector(selectors.checkmark);
|
|
250
|
-
|
|
251
|
-
expect(collapsedSummary).not.toBeNull();
|
|
252
|
-
expect(summaryLabel).not.toBeNull();
|
|
253
|
-
expect(checkmark).not.toBeNull();
|
|
254
|
-
expect(stepItems).toHaveLength(0);
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
it('should have aria-expanded set to false when collapsed', async () => {
|
|
258
|
-
const element = createTestComponent({
|
|
259
|
-
agentSteps: multipleSteps,
|
|
260
|
-
isStreaming: false,
|
|
261
|
-
});
|
|
262
|
-
await flushPromises();
|
|
263
|
-
|
|
264
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
265
|
-
selectors.collapsedSummary
|
|
266
|
-
);
|
|
267
|
-
|
|
268
|
-
expect(collapsedSummary).not.toBeNull();
|
|
269
|
-
expect(collapsedSummary.getAttribute('aria-expanded')).toBe('false');
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
it('should render nothing when there are no steps and not streaming', async () => {
|
|
273
|
-
const element = createTestComponent({
|
|
274
|
-
agentSteps: [],
|
|
275
|
-
isStreaming: false,
|
|
276
|
-
});
|
|
277
|
-
await flushPromises();
|
|
278
|
-
|
|
279
|
-
expect(element.shadowRoot.firstChild).toBeNull();
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
describe('expand/collapse interaction', () => {
|
|
284
|
-
const multipleSteps = [
|
|
285
|
-
{name: 'thinking', status: 'completed'},
|
|
286
|
-
{name: 'searching', status: 'completed'},
|
|
287
|
-
{name: 'thinking', status: 'completed'},
|
|
288
|
-
{name: 'answering', status: 'completed'},
|
|
289
|
-
];
|
|
290
|
-
|
|
291
|
-
it('should expand to show all steps and collapse button when collapsed summary row is clicked', async () => {
|
|
292
|
-
const element = createTestComponent({
|
|
293
|
-
agentSteps: multipleSteps,
|
|
294
|
-
isStreaming: false,
|
|
295
|
-
});
|
|
296
|
-
await flushPromises();
|
|
297
|
-
|
|
298
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
299
|
-
selectors.collapsedSummary
|
|
300
|
-
);
|
|
301
|
-
expect(collapsedSummary).not.toBeNull();
|
|
302
|
-
|
|
303
|
-
collapsedSummary.click();
|
|
304
|
-
await flushPromises();
|
|
305
|
-
|
|
306
|
-
const stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
307
|
-
const collapseButton = element.shadowRoot.querySelector(
|
|
308
|
-
selectors.collapseButton
|
|
309
|
-
);
|
|
310
|
-
expect(stepItems).toHaveLength(multipleSteps.length);
|
|
311
|
-
expect(collapseButton).not.toBeNull();
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
it('should collapse back when collapse button is clicked', async () => {
|
|
315
|
-
const element = createTestComponent({
|
|
316
|
-
agentSteps: multipleSteps,
|
|
317
|
-
isStreaming: false,
|
|
318
|
-
});
|
|
319
|
-
await flushPromises();
|
|
320
|
-
|
|
321
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
322
|
-
selectors.collapsedSummary
|
|
323
|
-
);
|
|
324
|
-
collapsedSummary.click();
|
|
325
|
-
await flushPromises();
|
|
326
|
-
|
|
327
|
-
const collapseButton = element.shadowRoot.querySelector(
|
|
328
|
-
selectors.collapseButton
|
|
329
|
-
);
|
|
330
|
-
expect(collapseButton).not.toBeNull();
|
|
331
|
-
|
|
332
|
-
collapseButton.click();
|
|
333
|
-
await flushPromises();
|
|
334
|
-
|
|
335
|
-
expect(
|
|
336
|
-
element.shadowRoot.querySelector(selectors.collapsedSummary)
|
|
337
|
-
).not.toBeNull();
|
|
338
|
-
expect(
|
|
339
|
-
element.shadowRoot.querySelectorAll(selectors.stepItem)
|
|
340
|
-
).toHaveLength(0);
|
|
341
|
-
expect(
|
|
342
|
-
element.shadowRoot.querySelector(selectors.collapseButton)
|
|
343
|
-
).toBeNull();
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
it('should set aria-expanded to true when expanded', async () => {
|
|
347
|
-
const element = createTestComponent({
|
|
348
|
-
agentSteps: multipleSteps,
|
|
349
|
-
isStreaming: false,
|
|
350
|
-
});
|
|
351
|
-
await flushPromises();
|
|
352
|
-
|
|
353
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
354
|
-
selectors.collapsedSummary
|
|
355
|
-
);
|
|
356
|
-
collapsedSummary.click();
|
|
357
|
-
await flushPromises();
|
|
358
|
-
|
|
359
|
-
const collapseButton = element.shadowRoot.querySelector(
|
|
360
|
-
selectors.collapseButton
|
|
361
|
-
);
|
|
362
|
-
expect(collapseButton).not.toBeNull();
|
|
363
|
-
expect(collapseButton.getAttribute('aria-expanded')).toBe('true');
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
it('should set aria-expanded to false when collapsed', async () => {
|
|
367
|
-
const element = createTestComponent({
|
|
368
|
-
agentSteps: multipleSteps,
|
|
369
|
-
isStreaming: false,
|
|
370
|
-
});
|
|
371
|
-
await flushPromises();
|
|
372
|
-
|
|
373
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
374
|
-
selectors.collapsedSummary
|
|
375
|
-
);
|
|
376
|
-
expect(collapsedSummary).not.toBeNull();
|
|
377
|
-
expect(collapsedSummary.getAttribute('aria-expanded')).toBe('false');
|
|
378
|
-
});
|
|
379
|
-
});
|
|
380
|
-
|
|
381
|
-
describe('single answering step', () => {
|
|
382
|
-
it('should show the step without a collapse button when only answering exists', async () => {
|
|
383
|
-
const element = createTestComponent({
|
|
384
|
-
agentSteps: [{name: 'answering', status: 'completed'}],
|
|
385
|
-
isStreaming: false,
|
|
386
|
-
});
|
|
387
|
-
await flushPromises();
|
|
388
|
-
|
|
389
|
-
const stepItems = element.shadowRoot.querySelectorAll(selectors.stepItem);
|
|
390
|
-
const collapseButton = element.shadowRoot.querySelector(
|
|
391
|
-
selectors.collapseButton
|
|
392
|
-
);
|
|
393
|
-
const collapsedSummary = element.shadowRoot.querySelector(
|
|
394
|
-
selectors.collapsedSummary
|
|
395
|
-
);
|
|
396
|
-
|
|
397
|
-
expect(stepItems).toHaveLength(1);
|
|
398
|
-
expect(collapseButton).toBeNull();
|
|
399
|
-
expect(collapsedSummary).toBeNull();
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
});
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import {resolveSteps} from '../stepsUtils.js';
|
|
2
|
-
|
|
3
|
-
describe('#resolveSteps', () => {
|
|
4
|
-
it('should return empty array for empty input', () => {
|
|
5
|
-
expect(resolveSteps([])).toEqual([]);
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
it('should resolve a full sequence correctly', () => {
|
|
9
|
-
expect(
|
|
10
|
-
resolveSteps([
|
|
11
|
-
{name: 'thinking', status: 'completed', startedAt: 0},
|
|
12
|
-
{name: 'searching', status: 'completed', startedAt: 10},
|
|
13
|
-
{name: 'thinking', status: 'completed', startedAt: 20},
|
|
14
|
-
{name: 'answering', status: 'active', startedAt: 30},
|
|
15
|
-
])
|
|
16
|
-
).toEqual([
|
|
17
|
-
{name: 'thinking-before-search', status: 'completed'},
|
|
18
|
-
{name: 'searching', status: 'completed'},
|
|
19
|
-
{name: 'thinking-after-search', status: 'completed'},
|
|
20
|
-
{name: 'answering', status: 'active'},
|
|
21
|
-
]);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('should handle repeated searching steps', () => {
|
|
25
|
-
expect(
|
|
26
|
-
resolveSteps([
|
|
27
|
-
{name: 'thinking', status: 'completed', startedAt: 0},
|
|
28
|
-
{name: 'searching', status: 'completed', startedAt: 10},
|
|
29
|
-
{name: 'thinking', status: 'completed', startedAt: 20},
|
|
30
|
-
{name: 'searching', status: 'completed', startedAt: 30},
|
|
31
|
-
{name: 'thinking', status: 'active', startedAt: 40},
|
|
32
|
-
])
|
|
33
|
-
).toEqual([
|
|
34
|
-
{name: 'thinking-before-search', status: 'completed'},
|
|
35
|
-
{name: 'searching', status: 'completed'},
|
|
36
|
-
{name: 'thinking-after-search', status: 'completed'},
|
|
37
|
-
{name: 'searching', status: 'completed'},
|
|
38
|
-
{name: 'thinking-after-search', status: 'active'},
|
|
39
|
-
]);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it('should resolve searching step with toolCall query to searching-with-query', () => {
|
|
43
|
-
expect(
|
|
44
|
-
resolveSteps([
|
|
45
|
-
{
|
|
46
|
-
name: 'searching',
|
|
47
|
-
status: 'active',
|
|
48
|
-
startedAt: 0,
|
|
49
|
-
toolCalls: [
|
|
50
|
-
{
|
|
51
|
-
toolCallName: 'search',
|
|
52
|
-
toolCallId: 'tc-1',
|
|
53
|
-
startedAt: 0,
|
|
54
|
-
status: 'active',
|
|
55
|
-
type: 'search',
|
|
56
|
-
toolCallArgs: {q: 'how to reset password'},
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
])
|
|
61
|
-
).toEqual([
|
|
62
|
-
{
|
|
63
|
-
name: 'searching-with-query',
|
|
64
|
-
status: 'active',
|
|
65
|
-
searchQuery: 'how to reset password',
|
|
66
|
-
},
|
|
67
|
-
]);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
it('should expand multiple search toolCalls into separate resolved steps', () => {
|
|
71
|
-
expect(
|
|
72
|
-
resolveSteps([
|
|
73
|
-
{
|
|
74
|
-
name: 'searching',
|
|
75
|
-
status: 'completed',
|
|
76
|
-
startedAt: 0,
|
|
77
|
-
toolCalls: [
|
|
78
|
-
{
|
|
79
|
-
toolCallName: 'search',
|
|
80
|
-
toolCallId: 'tc-1',
|
|
81
|
-
startedAt: 0,
|
|
82
|
-
finishedAt: 1,
|
|
83
|
-
status: 'completed',
|
|
84
|
-
type: 'search',
|
|
85
|
-
toolCallArgs: {q: 'What is Quantic'},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
toolCallName: 'search',
|
|
89
|
-
toolCallId: 'tc-2',
|
|
90
|
-
startedAt: 1,
|
|
91
|
-
finishedAt: 2,
|
|
92
|
-
status: 'completed',
|
|
93
|
-
type: 'search',
|
|
94
|
-
toolCallArgs: {q: 'What is Atomic'},
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
])
|
|
99
|
-
).toEqual([
|
|
100
|
-
{
|
|
101
|
-
name: 'searching-with-query',
|
|
102
|
-
status: 'completed',
|
|
103
|
-
searchQuery: 'What is Quantic',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'searching-with-query',
|
|
107
|
-
status: 'completed',
|
|
108
|
-
searchQuery: 'What is Atomic',
|
|
109
|
-
},
|
|
110
|
-
]);
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
it('should fall back to searching when toolCalls is absent', () => {
|
|
114
|
-
expect(
|
|
115
|
-
resolveSteps([{name: 'searching', status: 'active', startedAt: 0}])
|
|
116
|
-
).toEqual([{name: 'searching', status: 'active'}]);
|
|
117
|
-
});
|
|
118
|
-
});
|