diff --git a/packages/quantic/README.md b/packages/quantic/README.md index 2096e3f3179..18955d7d4d4 100644 --- a/packages/quantic/README.md +++ b/packages/quantic/README.md @@ -144,7 +144,7 @@ npm run e2e:detailed To run Playwright tests, run: ```bash -npm run e2e:playwright: +npm run e2e:playwright ``` To run Playwright tests only for the scratch org where LWS is enabled, run: diff --git a/packages/quantic/cypress/e2e/default-2/generatedAnswer/generated-answer-selectors.ts b/packages/quantic/cypress/e2e/default-2/generatedAnswer/generated-answer-selectors.ts index b54ae841203..9cfb0448ee3 100644 --- a/packages/quantic/cypress/e2e/default-2/generatedAnswer/generated-answer-selectors.ts +++ b/packages/quantic/cypress/e2e/default-2/generatedAnswer/generated-answer-selectors.ts @@ -36,7 +36,9 @@ export const GeneratedAnswerSelectors: GeneratedAnswerSelector = { get: () => cy.get(generatedAnswerComponent), generatedAnswerCard: () => - GeneratedAnswerSelectors.get().find('[data-cy="generated-answer__card"]'), + GeneratedAnswerSelectors.get().find( + '[data-testid="generated-answer__card"]' + ), generatedAnswer: () => GeneratedAnswerSelectors.get().find('[data-cy="generated-answer__answer"]'), likeButton: () => @@ -49,23 +51,23 @@ export const GeneratedAnswerSelectors: GeneratedAnswerSelector = { ), citations: () => GeneratedAnswerSelectors.get().find( - '[data-cy="generated-answer__citations"]' + '[data-testid="generated-answer__citations"]' ), citationTitle: (index: number) => GeneratedAnswerSelectors.get() - .find('[data-cy="generated-answer__citations"] .citation__title') + .find('[data-testid="generated-answer__citations"] .citation__title') .eq(index), citationLink: (index: number) => GeneratedAnswerSelectors.get() - .find('[data-cy="generated-answer__citations"] .citation__link') + .find('[data-testid="generated-answer__citations"] .citation__link') .eq(index), retryButton: () => GeneratedAnswerSelectors.get().find( - '[data-cy="generated-answer__retry-button"]' + '[data-testid="generated-answer__retry-button"]' ), toggleGeneratedAnswerButton: () => GeneratedAnswerSelectors.get().find( - 'c-quantic-generated-answer-toggle [data-cy="generated-answer__toggle-button"]' + 'c-quantic-generated-answer-toggle [data-testid="generated-answer__toggle-button"]' ), generatedAnswerContent: () => GeneratedAnswerSelectors.get().find( @@ -96,38 +98,38 @@ export const GeneratedAnswerSelectors: GeneratedAnswerSelector = { ), copyToClipboardButton: () => GeneratedAnswerSelectors.get().find( - '[data-cy="generated-answer__copy-to-clipboard"]' + '[data-testid="generated-answer__copy-to-clipboard"]' ), citationTooltip: (index: number) => GeneratedAnswerSelectors.get() - .find('[data-cy="generated-answer__citations"] [data-cy="tooltip"]') + .find('[data-testid="generated-answer__citations"] [data-cy="tooltip"]') .eq(index), citationTooltipUri: (index: number) => GeneratedAnswerSelectors.get() .find( - '[data-cy="generated-answer__citations"] [data-cy="citation__tooltip-uri"]' + '[data-testid="generated-answer__citations"] [data-cy="citation__tooltip-uri"]' ) .eq(index), citationTooltipTitle: (index: number) => GeneratedAnswerSelectors.get() .find( - '[data-cy="generated-answer__citations"] [data-cy="citation__tooltip-title"]' + '[data-testid="generated-answer__citations"] [data-cy="citation__tooltip-title"]' ) .eq(index), citationTooltipText: (index: number) => GeneratedAnswerSelectors.get() .find( - '[data-cy="generated-answer__citations"] [data-cy="citation__tooltip-text"]' + '[data-testid="generated-answer__citations"] [data-cy="citation__tooltip-text"]' ) .eq(index), disclaimer: () => GeneratedAnswerSelectors.get().find( - '[data-cy="generated-answer__disclaimer"]' + '[data-testid="generated-answer__disclaimer"]' ), toggleCollapseButton: () => GeneratedAnswerSelectors.get().find( - '[data-cy="generated-answer__answer-toggle"]' + '[data-testid="generated-answer__answer-toggle"]' ), generatingMessage: () => GeneratedAnswerSelectors.get().find( diff --git a/packages/quantic/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.html b/packages/quantic/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.html index d134d301b54..fe637cf1de8 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.html +++ b/packages/quantic/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.html @@ -17,6 +17,7 @@