fix e2e test (#14845)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
1 parent
8f69811e25
commit
dd78741158
2 files changed
+4
No files matched your search
@@ -22,6 +22,9 @@ test.describe("Availablity", () => {
|
||||
|
||||
test("Date Overrides", async ({ page }) => {
|
||||
await page.getByTestId("schedules").first().click();
|
||||
await page.locator('[data-testid="Sunday-switch"]').first().click();
|
||||
await page.locator('[data-testid="Saturday-switch"]').first().click();
|
||||
|
||||
await page.getByTestId("add-override").click();
|
||||
await page.locator('[id="modal-title"]').waitFor();
|
||||
await page.getByTestId("incrementMonth").click();
|
||||
|
||||
@@ -91,6 +91,7 @@ export const ScheduleDay = <TFieldValues extends FieldValues>({
|
||||
disabled={!watchDayRange || disabled}
|
||||
defaultChecked={watchDayRange && watchDayRange.length > 0}
|
||||
checked={watchDayRange && !!watchDayRange.length}
|
||||
data-testid={`${weekday}-switch`}
|
||||
onCheckedChange={(isChecked) => {
|
||||
setValue(name, (isChecked ? [DEFAULT_DAY_RANGE] : []) as TFieldValues[typeof name]);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user