Skip to content

Commit 1b051d1

Browse files
authored
fix: few flakes (#20608)
1 parent 76a820f commit 1b051d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/web/playwright/payment-apps.e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expect } from "@playwright/test";
33
import prisma from "@calcom/prisma";
44

55
import { test } from "./lib/fixtures";
6-
import { selectFirstAvailableTimeSlotNextMonth } from "./lib/testUtils";
6+
import { selectFirstAvailableTimeSlotNextMonth, submitAndWaitForResponse } from "./lib/testUtils";
77

88
test.describe.configure({ mode: "parallel" });
99
test.afterEach(({ users }) => users.deleteAll());
@@ -35,7 +35,9 @@ test.describe("Payment app", () => {
3535
await page.getByPlaceholder("Price").click();
3636
await page.getByPlaceholder("Price").fill("200");
3737
await page.getByText("SatoshissatsCurrencyBTCPayment optionCollect payment on booking").click();
38-
await page.getByTestId("update-eventtype").click();
38+
await submitAndWaitForResponse(page, "/api/trpc/eventTypes/update?batch=1", {
39+
action: () => page.locator("[data-testid=update-eventtype]").click(),
40+
});
3941

4042
await page.goto(`${user.username}/${paymentEvent?.slug}`);
4143

0 commit comments

Comments
 (0)