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