Skip to content

Commit ba34a6d

Browse files
test(quantic): adapted Quantic E2E for case assit with the new event protocol (#3754)
## [SFINT-5400](https://coveord.atlassian.net/browse/SFINT-5400) - Adapted the Cypress e2e test for Case Classification and Document Suggestion features for testing with analytics sent with the new protocol, now the test spec tests for both cases: the case when send legacy analytics and the case where we sent next analytics. - In a nutshell that's what I'm doing in this PR: wherever we were testing analytics like this: ``` Expect.logClickingSuggestion(clickIndex, allDocuments); ``` now we are testing it like this: ``` if (analyticsMode === "next") { NextAnalyticsExpectations.emitCaseAssistDocumentSuggestionClick( { documentSuggestion: { id: allDocuments[clickIndex].uniqueId, responseId: exampleResponseId, }, }, exampleTrackingId ); } else { Expect.logClickingSuggestion(clickIndex, allDocuments); } ``` [SFINT-5400]: https://coveord.atlassian.net/browse/SFINT-5400?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Sylvie Allain <58052881+sallainCoveo@users.noreply.github.com>
1 parent fe6d733 commit ba34a6d

File tree

6 files changed

+1933
-1129
lines changed

6 files changed

+1933
-1129
lines changed

packages/quantic/cypress.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineConfig({
99
runMode: 3,
1010
openMode: 1,
1111
},
12+
numTestsKeptInMemory: 0,
1213
viewportHeight: 1080,
1314
viewportWidth: 1920,
1415
e2e: {

0 commit comments

Comments
 (0)