Commit ba34a6d
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- packages/quantic
- cypress
- e2e
- default-1/case-classification
- default-2/document-suggestion
- page-objects
6 files changed
+1933
-1129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments