test: Check availability tab and all your functions (teste2e-availability) (#12434)
* add changes * add changes * add changes * add changes * Requested changes * Change way to grab element --------- Co-authored-by: gitstart-calcom <[email protected]> Co-authored-by: gitstart-calcom <[email protected]> Co-authored-by: Morgan <[email protected]> Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
5 files changed
+118
-2
No files matched your search
@@ -55,7 +55,7 @@ const ScheduleDay = <TFieldValues extends FieldValues>({
|
||||
const watchDayRange = watch(name);
|
||||
|
||||
return (
|
||||
<div className="mb-4 flex w-full flex-col last:mb-0 sm:flex-row sm:px-0">
|
||||
<div className="mb-4 flex w-full flex-col last:mb-0 sm:flex-row sm:px-0" data-testid={weekday}>
|
||||
{/* Label & switch container */}
|
||||
<div className="flex h-[36px] items-center justify-between sm:w-32">
|
||||
<div>
|
||||
@@ -107,6 +107,7 @@ const CopyButton = ({
|
||||
"text-default",
|
||||
open && "ring-brand-500 !bg-subtle outline-none ring-2 ring-offset-1"
|
||||
)}
|
||||
data-testid="copy-button"
|
||||
type="button"
|
||||
tooltip={t("copy_times_to_tooltip")}
|
||||
color="minimal"
|
||||
@@ -192,6 +193,7 @@ export const DayRanges = <TFieldValues extends FieldValues>({
|
||||
{index === 0 && (
|
||||
<Button
|
||||
disabled={disabled}
|
||||
data-testid="add-time-availability"
|
||||
tooltip={t("add_time_availability")}
|
||||
className="text-default mx-2 "
|
||||
type="button"
|
||||
|
||||
@@ -1030,7 +1030,7 @@ export function ShellMain(props: LayoutProps) {
|
||||
</h3>
|
||||
)}
|
||||
{props.subtitle && (
|
||||
<p className="text-default hidden text-sm md:block">
|
||||
<p className="text-default hidden text-sm md:block" data-testid="subtitle">
|
||||
{!isLocaleReady ? <SkeletonText invisible /> : props.subtitle}
|
||||
</p>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user