Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/playwright/apps/analytics/analyticsApps.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ test.describe("check analytics Apps", () => {
await page.goto("/event-types");
await appsPage.goToEventType("30 min");
await appsPage.goToAppsTab();
await appsPage.verifyAppsInfo(0);
await appsPage.verifyAppsInfo(1, 0);
await appsPage.activeApp(app);
await appsPage.verifyAppsInfo(1);
await appsPage.verifyAppsInfo(1, 1);
});
});
});
Expand Down
12 changes: 8 additions & 4 deletions apps/web/playwright/booking-seats.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { expect } from "@playwright/test";
import { v4 as uuidv4 } from "uuid";

import { randomString } from "@calcom/lib/random";
import prisma from "@calcom/prisma";
import { BookingStatus } from "@calcom/prisma/enums";

import { expect } from "@playwright/test";
import { v4 as uuidv4 } from "uuid";
import { test } from "./lib/fixtures";
import {
confirmReschedule,
Expand Down Expand Up @@ -43,6 +41,7 @@ test.describe("Booking with Seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});

const bookingSeats = bookingAttendees.map((attendee) => ({
Expand Down Expand Up @@ -136,6 +135,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});

const bookingSeats = bookingAttendees.map((attendee) => ({
Expand Down Expand Up @@ -203,6 +203,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});

const bookingSeats = bookingAttendees.map((attendee) => ({
Expand Down Expand Up @@ -282,6 +283,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});

const bookingSeats = bookingAttendees.map((attendee) => ({
Expand Down Expand Up @@ -475,6 +477,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});

const bookingSeats = bookingAttendees.map((attendee) => ({
Expand Down Expand Up @@ -522,6 +525,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});

const bookingSeats = bookingAttendees.map((attendee) => ({
Expand Down
7 changes: 5 additions & 2 deletions apps/web/playwright/fixtures/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ export function createAppsFixture(page: Page) {
activeApp: async (app: string) => {
await page.locator(`[data-testid='${app}-app-switch']`).click();
},
verifyAppsInfo: async (activeApps: number) => {
await expect(page.locator(`text=1 apps, ${activeApps} active`)).toBeVisible();
verifyAppsInfo: async (installedApps: number, activeApps: number) => {
const appsLabel = installedApps === 1 ? "app" : "apps";
await expect(
page.locator(`text=${installedApps} ${appsLabel}, ${activeApps} active`)
).toBeVisible();
},
verifyAppsInfoNew: async (app: string, eventTypeId: number) => {
await page.goto(`event-types/${eventTypeId}?tabName=apps`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ function getNavigation({
name: t("apps"),
href: `/event-types/${id}?tabName=apps`,
icon: "grid-3x3",
//TODO: Handle proper translation with count handling
info: `${installedAppsNumber} apps, ${enabledAppsNumber} ${t("active")}`,
info: `${t("number_apps", { count: installedAppsNumber })}, ${enabledAppsNumber} ${t("active")}`,
"data-testid": "apps",
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ owner will have to confirm the rescheduled booking.`;
export class RescheduleBookingInput_2024_08_13 {
@IsDateString()
@ApiProperty({
description: "Start time in ISO 8601 format for the new booking",
example: "2024-08-13T10:00:00Z",
description: "The start time of the booking in ISO 8601 format in UTC timezone.",
example: "2024-08-13T09:00:00Z",
})
start!: string;

Expand Down Expand Up @@ -47,8 +47,8 @@ export class RescheduleBookingInput_2024_08_13 {
export class RescheduleSeatedBookingInput_2024_08_13 {
@IsDateString()
@ApiProperty({
description: "Start time in ISO 8601 format for the new booking",
example: "2024-08-13T10:00:00Z",
description: "The start time of the booking in ISO 8601 format in UTC timezone.",
example: "2024-08-13T09:00:00Z",
})
start!: string;

Expand Down
Loading