Remove unnecessary changes
parent
d9fa1b7b34
commit
4bccbbbb36
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Address Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Phone and Address required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Phone Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Checkbox and Phone required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and checkbox Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Checkbox Group and checkbox required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Long text Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Checkbox Group and Long text required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Multi email Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Checkbox Group and Multi email required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and multiselect Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Checkbox Group and multiselect text required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Number Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Checkbox Group and Number required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Radio group Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Checkbox Group and Radio group required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and select Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Checkbox Group and select required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Checkbox Group Question and Short text question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Checkbox Group and Short text required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and Address Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Phone and Address required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and checkbox group Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Phone and checkbox group required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and checkbox Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Phone and checkbox required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and Long text Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Phone and Long text required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and Multi email Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Phone and Multi email required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and multiselect Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Phone and multiselect text required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and Number Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Phone and Number required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and Radio group Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Phone and Radio group required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and select Question", () => {
|
||||
const bookingOptions = { hasPlaceholder: false, isRequired: true };
|
||||
test("Phone and select required", async ({ page, users }) => {
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { test } from "../../lib/fixtures";
|
||||
import { initialCommonSteps } from "../utils/bookingUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.afterEach(({ users }) => users.deleteAll());
|
||||
|
||||
test.describe("Booking With Phone Question and Short text question", () => {
|
||||
const bookingOptions = { hasPlaceholder: true, isRequired: true };
|
||||
test("Phone and Short text required", async ({ page, users }) => {
|
||||
|
|
|
@ -212,7 +212,10 @@ export const initialCommonSteps = async (
|
|||
await bookingPage.getByTestId("preview-button").click();
|
||||
const eventTypePage = await eventtypePromise;
|
||||
|
||||
// Select the first available time
|
||||
while (await bookingPage.getByRole("button", { name: "View next" }).isVisible()) {
|
||||
await bookingPage.getByRole("button", { name: "View next" }).click();
|
||||
}
|
||||
|
||||
await eventTypePage.getByTestId("time").first().click();
|
||||
fillAndConfirmBooking(
|
||||
eventTypePage,
|
||||
|
@ -228,6 +231,9 @@ export const initialCommonSteps = async (
|
|||
};
|
||||
const rescheduleAndCancel = async (eventTypePage: Page) => {
|
||||
await eventTypePage.getByText("Reschedule").click();
|
||||
while (await eventTypePage.getByRole("button", { name: "View next" }).isVisible()) {
|
||||
await eventTypePage.getByRole("button", { name: "View next" }).click();
|
||||
}
|
||||
await eventTypePage.getByTestId("time").first().click();
|
||||
await eventTypePage.getByPlaceholder(reschedulePlaceholderText).click();
|
||||
await eventTypePage.getByPlaceholder(reschedulePlaceholderText).fill("Test reschedule");
|
||||
|
|
Loading…
Reference in New Issue