From 1b051d102cd1f7622b31ab0c75a731a04a44aac2 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Tue, 8 Apr 2025 22:03:44 +0530 Subject: [PATCH] fix: few flakes (#20608) --- apps/web/playwright/payment-apps.e2e.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/payment-apps.e2e.ts b/apps/web/playwright/payment-apps.e2e.ts index ee5ea0929c..91f7a3a68f 100644 --- a/apps/web/playwright/payment-apps.e2e.ts +++ b/apps/web/playwright/payment-apps.e2e.ts @@ -3,7 +3,7 @@ import { expect } from "@playwright/test"; import prisma from "@calcom/prisma"; import { test } from "./lib/fixtures"; -import { selectFirstAvailableTimeSlotNextMonth } from "./lib/testUtils"; +import { selectFirstAvailableTimeSlotNextMonth, submitAndWaitForResponse } from "./lib/testUtils"; test.describe.configure({ mode: "parallel" }); test.afterEach(({ users }) => users.deleteAll()); @@ -35,7 +35,9 @@ test.describe("Payment app", () => { await page.getByPlaceholder("Price").click(); await page.getByPlaceholder("Price").fill("200"); await page.getByText("SatoshissatsCurrencyBTCPayment optionCollect payment on booking").click(); - await page.getByTestId("update-eventtype").click(); + await submitAndWaitForResponse(page, "/api/trpc/eventTypes/update?batch=1", { + action: () => page.locator("[data-testid=update-eventtype]").click(), + }); await page.goto(`${user.username}/${paymentEvent?.slug}`);