fixes another e2e test

This commit is contained in:
pandeymangg
2025-11-27 13:07:01 +05:30
parent e072a0e889
commit 92f4f04f7c
2 changed files with 5 additions and 1 deletions

View File

@@ -634,6 +634,11 @@ export const getElementSummary = async (
break;
}
case TSurveyElementTypeEnum.CTA: {
// Only calculate summary for CTA elements with external buttons (CTR tracking is only meaningful for external links)
if (!element.buttonExternal) {
break;
}
const data = {
clicked: 0,
dismissed: 0,

View File

@@ -140,7 +140,6 @@ test.describe("JS Package Test", async () => {
await expect(page.getByRole("link", { name: "Responses" })).toBeVisible();
await expect(page.getByRole("button", { name: "Completed 100%" })).toBeVisible();
await expect(page.getByText("1 Responses", { exact: true }).first()).toBeVisible();
await expect(page.getByText("CTR100%")).toBeVisible();
await expect(page.getByText("Somewhat disappointed")).toBeVisible();
await expect(page.getByText("Founder")).toBeVisible();
await expect(page.getByText("People who believe that PMF").first()).toBeVisible();