File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { expect } from "@playwright/test";
33import prisma from "@calcom/prisma" ;
44
55import { test } from "./lib/fixtures" ;
6- import { selectFirstAvailableTimeSlotNextMonth } from "./lib/testUtils" ;
6+ import { selectFirstAvailableTimeSlotNextMonth , submitAndWaitForResponse } from "./lib/testUtils" ;
77
88test . describe . configure ( { mode : "parallel" } ) ;
99test . 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
You can’t perform that action at this time.
0 commit comments