Remove unnecessary changes

teste2e-radioGroupQuestion
gitstart-calcom 2023-10-05 19:41:07 +00:00
parent e4d321ce8d
commit dfbbffe785
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 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

@ -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 Radio Group Question and Address Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Radio Group 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 Radio Group Question and checkbox group Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Radio Group 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 Radio Group Question and checkbox Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Radio Group 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 Radio Group Question and Long text Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Radio Group 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 Radio Group Question and Multi email Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Radio Group 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 Radio Group Question and multiselect Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Radio Group 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 Radio Group Question and Number Question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Radio Group 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 Radio Group Question and Phone group Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Radio Group 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 Radio Group Question and select Question", () => {
const bookingOptions = { hasPlaceholder: false, isRequired: true };
test("Radio Group 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 Radio Group Question and Short text question", () => {
const bookingOptions = { hasPlaceholder: true, isRequired: true };
test("Radio Group 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");