fix: make delete confirmation consistent across schedules (#26300)
* add delete dialog * add types
This commit is contained in:
1 parent
9d5983d32d
commit
8bc710eb6e
2 files changed
+36
-10
No files matched your search
@@ -121,8 +121,9 @@ test.describe("Availability", () => {
|
||||
await test.step("Can delete a schedule", async () => {
|
||||
await page.getByTestId("go-back-button").click();
|
||||
await page.locator('[data-testid="schedules"] > li').nth(1).getByTestId("schedule-more").click();
|
||||
await page.locator('[data-testid="delete-schedule"]').click()
|
||||
await submitAndWaitForResponse(page, "/api/trpc/availability/schedule.delete?batch=1", {
|
||||
action: () => page.locator('[data-testid="delete-schedule"]').click(),
|
||||
action: () => page.locator('[data-testid="dialog-confirmation"]').click(),
|
||||
});
|
||||
await expect(page.locator('[data-testid="schedules"] > li').nth(1)).toHaveCount(0, { timeout: 0 });
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user