diff --git a/apps/web/app/lib/questions.tsx b/apps/web/app/lib/questions.tsx index 0749503154..0247cbdfb4 100644 --- a/apps/web/app/lib/questions.tsx +++ b/apps/web/app/lib/questions.tsx @@ -50,7 +50,6 @@ export const questionTypes: TQuestion[] = [ icon: MessageSquareTextIcon, preset: { headline: { default: "Who let the dogs out?" }, - subheader: { default: "Who? Who? Who?" }, placeholder: { default: "Type your answer here..." }, longAnswer: true, inputType: "text", @@ -63,7 +62,6 @@ export const questionTypes: TQuestion[] = [ icon: Rows3Icon, preset: { headline: { default: "What do you do?" }, - subheader: { default: "Can't do both." }, choices: [ { id: createId(), label: { default: "Eat the cake 🍰" } }, { id: createId(), label: { default: "Have the cake 🎂" } }, @@ -93,7 +91,6 @@ export const questionTypes: TQuestion[] = [ icon: ImageIcon, preset: { headline: { default: "Which is the cutest puppy?" }, - subheader: { default: "You can also pick both." }, allowMulti: true, choices: [ { @@ -114,7 +111,6 @@ export const questionTypes: TQuestion[] = [ icon: StarIcon, preset: { headline: { default: "How would you rate {{productName}}" }, - subheader: { default: "Don't worry, be honest." }, scale: "star", range: 5, lowerLabel: { default: "Not good" }, @@ -155,8 +151,7 @@ export const questionTypes: TQuestion[] = [ icon: Grid3X3Icon, preset: { headline: { default: "How much do you love these flowers?" }, - subheader: { default: "0: Not at all, 3: Love it" }, - rows: [{ default: "Rose 🌹" }, { default: "Sunflower 🌻" }, { default: "Hibiscus 🌺" }], + rows: [{ default: "Roses" }, { default: "Trees" }, { default: "Ocean" }], columns: [{ default: "0" }, { default: "1" }, { default: "2" }, { default: "3" }], } as Partial, }, diff --git a/apps/web/playwright/survey.spec.ts b/apps/web/playwright/survey.spec.ts index ac0374af44..f4a501f33d 100644 --- a/apps/web/playwright/survey.spec.ts +++ b/apps/web/playwright/survey.spec.ts @@ -169,9 +169,9 @@ test.describe("Survey Create & Submit Response", async () => { await expect(page.getByRole("cell", { name: surveys.createAndSubmit.matrix.columns[3] })).toBeVisible(); await expect(page.locator("#questionCard-9").getByRole("button", { name: "Next" })).toBeVisible(); await expect(page.locator("#questionCard-9").getByRole("button", { name: "Back" })).toBeVisible(); - await page.getByRole("row", { name: "Rose 🌹" }).getByRole("cell").nth(1).click(); - await page.getByRole("row", { name: "Sunflower 🌻" }).getByRole("cell").nth(1).click(); - await page.getByRole("row", { name: "Hibiscus 🌺" }).getByRole("cell").nth(1).click(); + await page.getByRole("row", { name: "Roses" }).getByRole("cell").nth(1).click(); + await page.getByRole("row", { name: "Trees" }).getByRole("cell").nth(1).click(); + await page.getByRole("row", { name: "Ocean" }).getByRole("cell").nth(1).click(); await page.locator("#questionCard-9").getByRole("button", { name: "Next" }).click(); // Address Question diff --git a/apps/web/playwright/utils/mock.ts b/apps/web/playwright/utils/mock.ts index 497c7f48cb..f4bf72bfd0 100644 --- a/apps/web/playwright/utils/mock.ts +++ b/apps/web/playwright/utils/mock.ts @@ -150,7 +150,7 @@ export const surveys = { matrix: { question: "How much do you love these flowers?", description: "0: Not at all, 3: Love it", - rows: ["Rose 🌹", "Sunflower 🌻", "Hibiscus 🌺"], + rows: ["Roses", "Trees", "Ocean"], columns: ["0", "1", "2", "3"], }, address: { diff --git a/packages/lib/templates.ts b/packages/lib/templates.ts index 7547c4a25f..672c45ec41 100644 --- a/packages/lib/templates.ts +++ b/packages/lib/templates.ts @@ -2526,7 +2526,6 @@ export const customSurvey = { id: createId(), type: TSurveyQuestionTypeEnum.OpenText, headline: { default: "What would you like to know?" }, - subheader: { default: "This is an example survey." }, placeholder: { default: "Type your answer here..." }, required: true, inputType: "text", diff --git a/packages/surveys/src/components/questions/MatrixQuestion.tsx b/packages/surveys/src/components/questions/MatrixQuestion.tsx index bfb8431e76..1e0c48521b 100644 --- a/packages/surveys/src/components/questions/MatrixQuestion.tsx +++ b/packages/surveys/src/components/questions/MatrixQuestion.tsx @@ -120,7 +120,7 @@ export const MatrixQuestion = ({ // Table rows {getLocalizedValue(row, languageCode)}