Update regularBookings.ts

teste2e-multiSelectQuestion
GitStart-Cal.com 2023-10-30 18:28:32 -03:00 committed by GitHub
parent 9609dcf5be
commit 338982102b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,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(200); 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()
) { ) {
@ -256,7 +256,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(200); 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();