feat: Removed offset start times feature from UI (#20634)

* feat: Removed offset start times feature from UI

* conditionally rendering offsetStart (#20622)

* fixes for failing tests

* fixes failing tests

* failing test fixes
This commit is contained in:
Avnish Jha authored and GitHub committed 2025-04-10 17:46:53 +05:30
1 parent eb19edfa8f
commit 10fa080b7f
3 files changed
+56 -44

No files matched your search

@@ -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("30 min");
await bookingPage.goToEventType("Offset Event");
await bookingPage.goToTab("event_limit_tab_title");
});
@@ -11,7 +11,17 @@ export const scheduleSuccessfullyText = "This meeting is scheduled";
type UserFixture = ReturnType<typeof createUsersFixture>;
export async function loginUser(users: UserFixture) {
const pro = await users.create({ name: "testuser" });
const pro = await users.create({
name: "testuser",
eventTypes: [
{
title: "Offset Event",
slug: "offset-event",
length: 30,
offsetStart: 10,
},
],
});
await pro.apiLogin();
}
@@ -191,7 +201,6 @@ export function createBookingPageFixture(page: Page) {
const offsetStartTimes = (await localize("en"))("offset_toggle");
const offsetLabel = page.getByLabel(offsetStart);
await page.locator("fieldset").filter({ hasText: offsetStartTimes }).getByRole("switch").click();
await offsetLabel.fill("10");
await expect(offsetLabel).toHaveValue("10");
await expect(