Update regularBookings.ts

teste2e-radioGroupQuestion
GitStart-Cal.com 2023-10-30 18:30:22 -03:00 committed by GitHub
parent 8359259cb6
commit e580168345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ export function createBookingPageFixture(page: Page) {
await eventTypePage.getByPlaceholder(reschedulePlaceholderText).click(); await eventTypePage.getByPlaceholder(reschedulePlaceholderText).click();
await eventTypePage.getByPlaceholder(reschedulePlaceholderText).fill("Test reschedule"); await eventTypePage.getByPlaceholder(reschedulePlaceholderText).fill("Test reschedule");
await eventTypePage.getByTestId("confirm-reschedule-button").click(); await eventTypePage.getByTestId("confirm-reschedule-button").click();
await eventTypePage.waitForTimeout(100); await eventTypePage.waitForTimeout(400);
if ( if (
await eventTypePage.getByRole("heading", { name: "Could not reschedule the meeting." }).isVisible() await eventTypePage.getByRole("heading", { name: "Could not reschedule the meeting." }).isVisible()
) { ) {
@ -257,7 +257,7 @@ export function createBookingPageFixture(page: Page) {
options.isRequired && (await fillQuestion(eventTypePage, secondQuestion, customLocators)); options.isRequired && (await fillQuestion(eventTypePage, secondQuestion, customLocators));
await eventTypePage.getByTestId(confirmButton).click(); await eventTypePage.getByTestId(confirmButton).click();
await eventTypePage.waitForTimeout(100); await eventTypePage.waitForTimeout(400);
if (await eventTypePage.getByRole("heading", { name: "Could not book the meeting." }).isVisible()) { if (await eventTypePage.getByRole("heading", { name: "Could not book the meeting." }).isVisible()) {
await eventTypePage.getByTestId("back").click(); await eventTypePage.getByTestId("back").click();
await eventTypePage.getByTestId("time").last().click(); await eventTypePage.getByTestId("time").last().click();