diff --git a/apps/web/pages/event-types/index.tsx b/apps/web/pages/event-types/index.tsx index b5ed1c8810..5352f0cb9c 100644 --- a/apps/web/pages/event-types/index.tsx +++ b/apps/web/pages/event-types/index.tsx @@ -56,11 +56,11 @@ const Item = ({ type, group, readOnly }: { type: EventType; group: EventTypeGrou return ( {type.title} @@ -252,8 +252,8 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL const calLink = `${CAL_URL}/${embedLink}`; return ( - - + + {!(firstItem && firstItem.id === type.id) && ( )} - + {type.users?.length > 1 && ( - + diff --git a/apps/web/playwright/event-types.e2e.ts b/apps/web/playwright/event-types.e2e.ts index 341797ed0d..443d0fef39 100644 --- a/apps/web/playwright/event-types.e2e.ts +++ b/apps/web/playwright/event-types.e2e.ts @@ -22,7 +22,7 @@ test.describe("Event Types tests", () => { }); test("has at least 2 events", async ({ page }) => { - const $eventTypes = page.locator("[data-testid=event-types] > *"); + const $eventTypes = page.locator("[data-testid=event-types] > li a"); const count = await $eventTypes.count(); expect(count).toBeGreaterThanOrEqual(2); }); @@ -110,7 +110,7 @@ test.describe("Event Types tests", () => { expect(formSlug).toBe(firstSlug); }); test("edit first event", async ({ page }) => { - const $eventTypes = page.locator("[data-testid=event-types] > *"); + const $eventTypes = page.locator("[data-testid=event-types] > li a"); const firstEventTypeElement = $eventTypes.first(); await firstEventTypeElement.click(); await page.waitForNavigation({ @@ -134,13 +134,13 @@ test.describe("Event Types tests", () => { }); test("has at least 2 events where first is enabled", async ({ page }) => { - const $eventTypes = page.locator("[data-testid=event-types] > *"); + const $eventTypes = page.locator("[data-testid=event-types] > li a"); const count = await $eventTypes.count(); expect(count).toBeGreaterThanOrEqual(2); }); test("edit first event", async ({ page }) => { - const $eventTypes = page.locator("[data-testid=event-types] > *"); + const $eventTypes = page.locator("[data-testid=event-types] > li a"); const firstEventTypeElement = $eventTypes.first(); await firstEventTypeElement.click(); await page.waitForNavigation({ diff --git a/apps/web/playwright/hash-my-url.e2e.ts b/apps/web/playwright/hash-my-url.e2e.ts index 3502ae25ef..794138ffc5 100644 --- a/apps/web/playwright/hash-my-url.e2e.ts +++ b/apps/web/playwright/hash-my-url.e2e.ts @@ -18,7 +18,7 @@ test.describe("hash my url", () => { await page.goto("/event-types"); // We wait until loading is finished await page.waitForSelector('[data-testid="event-types"]'); - await page.locator('//ul[@data-testid="event-types"]/li[1]').click(); + await page.locator("ul[data-testid=event-types] > li a").first().click(); // We wait for the page to load await page.locator(".primary-navigation >> text=Advanced").click(); // ignore if it is already checked, and click if unchecked @@ -45,7 +45,7 @@ test.describe("hash my url", () => { await page.goto("/event-types"); // We wait until loading is finished await page.waitForSelector('[data-testid="event-types"]'); - await page.click('//ul[@data-testid="event-types"]/li[1]'); + await page.locator("ul[data-testid=event-types] > li a").first().click(); // We wait for the page to load await page.locator(".primary-navigation >> text=Advanced").click(); // we wait for the hashedLink setting to load diff --git a/packages/ui/v2/modules/event-types/EventTypeDescription.tsx b/packages/ui/v2/modules/event-types/EventTypeDescription.tsx index 326c89bcfe..01aefdcdd3 100644 --- a/packages/ui/v2/modules/event-types/EventTypeDescription.tsx +++ b/packages/ui/v2/modules/event-types/EventTypeDescription.tsx @@ -35,10 +35,10 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript <> {eventType.description && ( - - {eventType.description.substring(0, 100)} - {eventType.description.length > 100 && "..."} - + + {eventType.description.substring(0, 300)} + {eventType.description.length > 300 && "..."} + )}
+ {eventType.description.substring(0, 300)} + {eventType.description.length > 300 && "..."} +