fix: nested scrolls on /bookings/upcoming (#18760)

This commit is contained in:
Eunjae Lee authored and GitHub committed 2025-01-20 09:18:12 -05:00
1 parent bfeafaa21f
commit 5357228f72
5 files changed
+133 -113

No files matched your search

+3 -3
View File
@@ -42,9 +42,9 @@ test.describe("Wipe my Cal App Test", () => {
await page.goto("/bookings/upcoming");
await expect(page.locator("data-testid=wipe-today-button")).toBeVisible();
const $openBookingCount = await page.locator('[data-testid="bookings"] > *').count();
const $todayBookingCount = await page.locator('[data-testid="today-bookings"] > *').count();
expect($openBookingCount + $todayBookingCount).toBe(3);
const $nonTodayBookingCount = await page.locator('[data-today="false"]').count();
const $todayBookingCount = await page.locator('[data-today="true"]').count();
expect($nonTodayBookingCount + $todayBookingCount).toBe(3);
await page.locator("data-testid=wipe-today-button").click();