feat: Ability to Hyperlink text in Checkbox on Additional Questions (#15194)

* feat: Ability to Hyperlink text in Checkbox on Additional Questions

* update

* fix and update

* fix type error

* fix and update

* dpdate

* fix type error

* fix unit test

* Update

* fix tests

* revert test

* remove yarn.lock

* remove schema.prisma

* update

* remove log

* revert

---------

Co-authored-by: Keith Williams <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Amit Sharma <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-09-05 09:05:45 +00:00
1 parent 633697a812
commit fabcf2055b
9 files changed
+118 -38

No files matched your search

@@ -4,6 +4,7 @@ import type { createUsersFixture } from "playwright/fixtures/users";
import { uuid } from "short-uuid";
import { fieldTypesConfigMap } from "@calcom/features/form-builder/fieldTypes";
import { md } from "@calcom/lib/markdownIt";
import prisma from "@calcom/prisma";
import { WebhookTriggerEvents } from "@calcom/prisma/enums";
import type { CalendarEvent } from "@calcom/types/Calendar";
@@ -549,7 +550,12 @@ async function addQuestionAndSave({
}
if (question.label !== undefined) {
await page.fill('[name="label"]', question.label);
if (question.type === "Checkbox") {
const editorInput = page.locator('[data-testid="editor-input"]');
await editorInput.fill(md.render(question.label));
} else {
await page.fill('[name="label"]', question.label);
}
}
if (question.placeholder !== undefined) {