Remove unnecessary changes

teste2e-checkboxQuestion
gitstart-calcom 2023-10-06 16:19:25 +00:00
parent 13e3621205
commit a5b645e72e
21 changed files with 7 additions and 81 deletions

View File

@ -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 Question and Address Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Checkbox and Address required", async ({ page, users }) => {

View File

@ -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 Question and Checkbox group Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Checkbox and Checkbox group required", async ({ page, users }) => {

View File

@ -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 Question and Long Text Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Checkbox and Long Text required", async ({ page, users }) => {

View File

@ -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 Question and Multi email Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Checkbox and Multi email required", async ({ page, users }) => {

View File

@ -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 Question and Multiselect Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Checkbox and Multiselect required", async ({ page, users }) => {

View File

@ -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 Question and Number Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Checkbox and Number required", async ({ page, users }) => {

View File

@ -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 Question and Phone Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Checkbox and Phone required", async ({ page, users }) => {

View File

@ -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 Question and Radio group Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Checkbox and Radio group required", async ({ page, users }) => {

View File

@ -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 Question and Select Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Checkbox and Select required", async ({ page, users }) => {

View File

@ -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 Question and Short text Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Checkbox and Short text required", async ({ page, users }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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");