Skip to content

Scheduling infrastructure for absolutely everyone.

chore: remove unnecessary tests and mock data (#20648)

amrita77ee7aaa2b5
diff --git a/apps/web/playwright/eventType/limit-tab.e2e.ts b/apps/web/playwright/eventType/limit-tab.e2e.ts
index 32f3afd61a9..3b9887c9d74 100644
--- a/apps/web/playwright/eventType/limit-tab.e2e.ts
+++ b/apps/web/playwright/eventType/limit-tab.e2e.ts
@@ -5,7 +5,7 @@ test.describe("Limits Tab - Event Type", () => {
test.beforeEach(async ({ page, users, bookingPage }) => {
await loginUser(users);
await page.goto("/event-types");
- await bookingPage.goToEventType("Offset Event");
+ await bookingPage.goToEventType("Test Event");
await bookingPage.goToTab("event_limit_tab_title");
});
@@ -13,7 +13,6 @@ test.describe("Limits Tab - Event Type", () => {
await bookingPage.checkLimitBookingFrequency();
await bookingPage.checkLimitBookingDuration();
await bookingPage.checkLimitFutureBookings();
- await bookingPage.checkOffsetTimes();
await bookingPage.checkBufferTime();
await bookingPage.updateEventType();
diff --git a/apps/web/playwright/fixtures/regularBookings.ts b/apps/web/playwright/fixtures/regularBookings.ts
index 70dbaf1afcf..001224e1588 100644
--- a/apps/web/playwright/fixtures/regularBookings.ts
+++ b/apps/web/playwright/fixtures/regularBookings.ts
@@ -15,10 +15,9 @@ export async function loginUser(users: UserFixture) {
name: "testuser",
eventTypes: [
{
- title: "Offset Event",
- slug: "offset-event",
+ title: "Test Event",
+ slug: "test-event",
length: 30,
- offsetStart: 10,
},
],
});
@@ -196,17 +195,6 @@ export function createBookingPageFixture(page: Page) {
await expect(page.locator("#RANGE")).toBeChecked();
await limitBookingsSwitch.click();
},
- checkOffsetTimes: async () => {
- const offsetStart = (await localize("en"))("offset_start");
- const offsetStartTimes = (await localize("en"))("offset_toggle");
- const offsetLabel = page.getByLabel(offsetStart);
-
- await offsetLabel.fill("10");
- await expect(offsetLabel).toHaveValue("10");
- await expect(
- page.getByText("e.g. this will show time slots to your bookers at 9:10 AM instead of 9:00 AM")
- ).toBeVisible();
- },
checkTimeSlotsCount: async (eventTypePage: Page, count: number) => {
await expect(eventTypePage.getByTestId("time")).toHaveCount(count);
},