Scheduling infrastructure for absolutely everyone.
fix: few flaky e2e tests (#19010)
Anik Dhabal Babucdc3c49b23f6
diff --git a/apps/web/playwright/fixtures/apps.ts b/apps/web/playwright/fixtures/apps.tsindex 1822a098dab..bda5c11c701 100644--- a/apps/web/playwright/fixtures/apps.ts+++ b/apps/web/playwright/fixtures/apps.ts@@ -18,6 +18,8 @@ export function createAppsFixture(page: Page) {installAnalyticsAppSkipConfigure: async (app: string) => {await page.getByTestId(`app-store-app-card-${app}`).click();await page.getByTestId("install-app-button").click();+ await page.waitForURL(`apps/installation/accounts?slug=${app}`);+ await page.reload();await page.click('[data-testid="install-app-button-personal"]');await page.waitForURL(`apps/installation/event-types?slug=${app}`);await page.click('[data-testid="set-up-later"]');@@ -25,6 +27,8 @@ export function createAppsFixture(page: Page) {installAnalyticsApp: async (app: string, eventTypeIds: number[]) => {await page.getByTestId(`app-store-app-card-${app}`).click();(await page.waitForSelector('[data-testid="install-app-button"]')).click();+ await page.waitForURL(`apps/installation/accounts?slug=${app}`);+ await page.reload();await page.click('[data-testid="install-app-button-personal"]');await page.waitForURL(`apps/installation/event-types?slug=${app}`);diff --git a/apps/web/playwright/lib/testUtils.ts b/apps/web/playwright/lib/testUtils.tsindex 0552d6bdec6..a752cb9a646 100644--- a/apps/web/playwright/lib/testUtils.ts+++ b/apps/web/playwright/lib/testUtils.ts@@ -221,6 +221,7 @@ export async function setupManagedEvent({export const createNewSeatedEventType = async (page: Page, args: { eventTitle: string }) => {const eventTitle = args.eventTitle;await createNewEventType(page, { eventTitle });+ await page.waitForSelector('[data-testid="event-title"]');await page.locator('[data-testid="vertical-tab-event_advanced_tab_title"]').click();await page.locator('[data-testid="offer-seats-toggle"]').click();await page.locator('[data-testid="update-eventtype"]').click();