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

* fix: trigger lingo.dev by removing duplicate value

* fix: Update event type in tests and remove offset times checks

* Changed event type from "Offset Event" to "Test Event" in the limits tab tests.
* Removed the check for offset times from the booking page fixture, streamlining the booking process.
This commit is contained in:
amrit
2025-04-10 19:39:39 +05:30
committed by GitHub
parent 07d8a39829
commit a77ee7aaa2
2 changed files with 3 additions and 16 deletions
@@ -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();
@@ -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);
},