test: check all advanced options in a managed event-type (teste2e-managedOptions) (#12294)
* check all advanced options in a managed event-type * Delete apps/web/playwright/booking/managedBookingAllQuestion.e2e.ts * Delete apps/web/playwright/managedBooking/allQuestions.e2e.ts * Refactor * Refactor * check all advanced options in a managed event-type * check all advanced options in a managed event-type * Update regularBookings.ts * Update regularBookings.ts --------- Co-authored-by: gitstart-calcom <[email protected]> Co-authored-by: GitStart-Cal.com <[email protected]> Co-authored-by: gitstart-calcom <[email protected]> Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
10 files changed
+174
-15
No files matched your search
@@ -109,6 +109,7 @@ export const CreateANewTeamForm = () => {
|
||||
}
|
||||
}}
|
||||
autoComplete="off"
|
||||
data-testid="team-name"
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -183,6 +183,7 @@ export default function CreateEventTypeDialog({
|
||||
<TextField
|
||||
label={t("title")}
|
||||
placeholder={t("quick_chat")}
|
||||
data-testid="event-type-quick-chat"
|
||||
{...register("title")}
|
||||
onChange={(e) => {
|
||||
form.setValue("title", e?.target.value);
|
||||
@@ -293,7 +294,8 @@ export default function CreateEventTypeDialog({
|
||||
{...register("schedulingType")}
|
||||
value={SchedulingType.MANAGED}
|
||||
className={classNames("text-sm", !isAdmin && "w-1/2")}
|
||||
classNames={{ container: classNames(isAdmin && "w-full") }}>
|
||||
classNames={{ container: classNames(isAdmin && "w-full") }}
|
||||
data-testid="managed-event-type">
|
||||
<strong className="mb-1 block">{t("managed_event")}</strong>
|
||||
<p>{t("managed_event_description")}</p>
|
||||
</RadioArea.Item>
|
||||
|
||||
@@ -106,7 +106,7 @@ export const EventTypeDescription = ({
|
||||
</li>
|
||||
)}
|
||||
{eventType.requiresConfirmation && (
|
||||
<li className="hidden xl:block">
|
||||
<li className="hidden xl:block" data-testid="requires-confirmation-badge">
|
||||
<Badge variant="gray" startIcon={Clipboard}>
|
||||
{eventType.metadata?.requiresConfirmationThreshold
|
||||
? t("may_require_confirmation")
|
||||
|
||||
@@ -181,7 +181,9 @@ export const FormBuilder = function FormBuilder({
|
||||
// Hidden field can't be required, so we don't need to show the Optional badge
|
||||
<Badge variant="grayWithoutHover">{t("hidden")}</Badge>
|
||||
) : (
|
||||
<Badge variant="grayWithoutHover">{isRequired ? t("required") : t("optional")}</Badge>
|
||||
<Badge variant="grayWithoutHover" data-testid={isRequired ? "required" : "optional"}>
|
||||
{isRequired ? t("required") : t("optional")}
|
||||
</Badge>
|
||||
)}
|
||||
{Object.entries(groupedBySourceLabel).map(([sourceLabel, sources], key) => (
|
||||
// We don't know how to pluralize `sourceLabel` because it can be anything
|
||||
|
||||
@@ -53,7 +53,7 @@ function SettingsToggle({
|
||||
switchContainerClassName
|
||||
)}>
|
||||
<div>
|
||||
<div className="flex items-center">
|
||||
<div className="flex items-center" data-testid={`${rest["data-testid"]}-title`}>
|
||||
<Label
|
||||
className={classNames("mt-0.5 text-base font-semibold leading-none", labelClassName)}>
|
||||
{title}
|
||||
@@ -61,7 +61,13 @@ function SettingsToggle({
|
||||
</Label>
|
||||
{Badge && <div className="mb-2">{Badge}</div>}
|
||||
</div>
|
||||
{description && <p className="text-default -mt-1.5 text-sm leading-normal">{description}</p>}
|
||||
{description && (
|
||||
<p
|
||||
className="text-default -mt-1.5 text-sm leading-normal"
|
||||
data-testid={`${rest["data-testid"]}-description`}>
|
||||
{description}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="my-auto h-full">
|
||||
<Switch
|
||||
|
||||
Reference in new issue
Block a user