Scheduling infrastructure for absolutely everyone.
fix: fix playwright typos (#19794)
luzpaz1848cd55b101
diff --git a/apps/web/playwright/auth/auth-index.e2e.ts b/apps/web/playwright/auth/auth-index.e2e.tsindex 21846a3c045..dbb8beec8b1 100644--- a/apps/web/playwright/auth/auth-index.e2e.ts+++ b/apps/web/playwright/auth/auth-index.e2e.ts@@ -63,7 +63,7 @@ test.describe("Can signup from a team invite", async () => {await newPage.fill('input[name="username"]', testUser.username);await newPage.fill('input[name="password"]', testUser.password);await submitAndWaitForResponse(newPage, "/api/auth/signup", { expectedStatusCode: 201 });- // Since it's a new user, it shoud be redirected to the onboarding+ // Since it's a new user, it should be redirected to the onboardingawait newPage.locator('text="Welcome to Cal.com!"').waitFor();await expect(newPage.locator('text="Welcome to Cal.com!"')).toBeVisible();// We don't need the new browser anymorediff --git a/apps/web/playwright/availability.e2e.ts b/apps/web/playwright/availability.e2e.tsindex df923e5c66e..f4fb63c534a 100644--- a/apps/web/playwright/availability.e2e.ts+++ b/apps/web/playwright/availability.e2e.ts@@ -7,7 +7,7 @@ import { localize, submitAndWaitForResponse } from "./lib/testUtils";test.describe.configure({ mode: "parallel" });-test.describe("Availablity", () => {+test.describe("Availability", () => {test.beforeEach(async ({ page, users }) => {const user = await users.create();await user.apiLogin();diff --git a/apps/web/playwright/booking-limits.e2e.ts b/apps/web/playwright/booking-limits.e2e.tsindex 0e95b086404..1fe2e789714 100644--- a/apps/web/playwright/booking-limits.e2e.ts+++ b/apps/web/playwright/booking-limits.e2e.ts@@ -28,7 +28,7 @@ test.afterEach(async ({ users }) => {// used as a multiplier for duration limitsconst EVENT_LENGTH = 30;-// limits used when testing each limit seperately+// limits used when testing each limit separatelyconst BOOKING_LIMITS_SINGLE = {PER_DAY: 2,PER_WEEK: 2,diff --git a/apps/web/playwright/fixtures/features.ts b/apps/web/playwright/fixtures/features.tsindex a13e0592842..cce77b3647a 100644--- a/apps/web/playwright/fixtures/features.ts+++ b/apps/web/playwright/fixtures/features.ts@@ -10,7 +10,7 @@ export const createFeatureFixture = (page: Page) => {const store = { features: [], page } as { features: Feature[]; page: typeof page };let initalFeatures: Feature[] = [];- // IIF to add all feautres to store on creation+ // IIF to add all features to store on creationreturn {init: async () => {const features = await prisma.feature.findMany();diff --git a/apps/web/playwright/fixtures/users.ts b/apps/web/playwright/fixtures/users.tsindex 858b55da09c..c00caa9e70a 100644--- a/apps/web/playwright/fixtures/users.ts+++ b/apps/web/playwright/fixtures/users.ts@@ -849,7 +849,7 @@ const createUserFixture = (user: UserWithIncludes, page: Page) => {installStripePersonal({ page: store.page, ...params }),installStripeTeam: async (params: InstallStripeParamsUnion & { teamId: number }) =>installStripeTeam({ page: store.page, ...params }),- // ths is for developemnt only aimed to inject debugging messages in the metadata field of the user+ // this is for development only aimed to inject debugging messages in the metadata field of the userdebug: async (message: string | Record<string, JSONValue>) => {await prisma.user.update({where: { id: store.user.id },diff --git a/apps/web/playwright/integrations.e2e.ts b/apps/web/playwright/integrations.e2e.tsindex 2bb9cb00a34..23622a1ed58 100644--- a/apps/web/playwright/integrations.e2e.ts+++ b/apps/web/playwright/integrations.e2e.ts@@ -100,7 +100,7 @@ const addLocationIntegrationToFirstEvent = async function ({ user }: { user: { uasync function bookEvent(page: Page, calLink: string) {// Let current month dates fully render.- // There is a bug where if we don't let current month fully render and quickly click go to next month, current month get's rendered+ // There is a bug where if we don't let current month fully render and quickly click go to next month, current month gets rendered// This doesn't seem to be replicable with the speed of a person, only during automation.// It would also allow correct snapshot to be taken for current month.// eslint-disable-next-line playwright/no-wait-for-timeoutdiff --git a/apps/web/playwright/lib/testUtils.ts b/apps/web/playwright/lib/testUtils.tsindex 09fa660fbe1..257507345c6 100644--- a/apps/web/playwright/lib/testUtils.ts+++ b/apps/web/playwright/lib/testUtils.ts@@ -429,7 +429,7 @@ export function goToUrlWithErrorHandling({ page, url }: { page: Page; url: strin}/**- * Within this function's callback if a non-org domain is opened, it is considered an org domain identfied from `orgSlug`+ * Within this function's callback if a non-org domain is opened, it is considered an org domain identified from `orgSlug`*/export async function doOnOrgDomain({ orgSlug, page }: { orgSlug: string | null; page: Page },diff --git a/apps/web/playwright/login.2fa.e2e.ts b/apps/web/playwright/login.2fa.e2e.tsindex 0facb673dcb..d55f4530399 100644--- a/apps/web/playwright/login.2fa.e2e.ts+++ b/apps/web/playwright/login.2fa.e2e.ts@@ -12,7 +12,7 @@ test.describe.configure({ mode: "parallel" });// TODO: add more backup code tests, e.g. login + disabling 2fa with backup-// a test to logout requires both a succesfull login as logout, to prevent+// a test to logout requires both a successful login as logout, to prevent// a doubling of tests failing on logout & logout, we can group them.test.describe("2FA Tests", async () => {test.afterEach(async ({ users }) => {diff --git a/apps/web/playwright/login.e2e.ts b/apps/web/playwright/login.e2e.tsindex 286fe09634c..9f089080c7c 100644--- a/apps/web/playwright/login.e2e.ts+++ b/apps/web/playwright/login.e2e.ts@@ -6,9 +6,9 @@ import { localize } from "./lib/testUtils";test.describe.configure({ mode: "parallel" });-// a test to logout requires both a succesfull login as logout, to prevent+// a test to logout requires both a successful login as logout, to prevent// a doubling of tests failing on logout & logout, we can group them.-test.describe("user can login & logout succesfully", async () => {+test.describe("user can login & logout successfully", async () => {test.afterEach(async ({ users }) => {await users.deleteAll();});diff --git a/apps/web/playwright/oauth-provider.e2e.ts b/apps/web/playwright/oauth-provider.e2e.tsindex 5955ade09a2..144c17dc477 100644--- a/apps/web/playwright/oauth-provider.e2e.ts+++ b/apps/web/playwright/oauth-provider.e2e.ts@@ -24,7 +24,7 @@ test.describe("OAuth Provider", () => {test.beforeAll(async () => {client = await createTestCLient();});- test("should create valid access toke & refresh token for user", async ({ page, users }) => {+ test("should create valid access token & refresh token for user", async ({ page, users }) => {const user = await users.create({ username: "test user", name: "test user" });await user.apiLogin();diff --git a/apps/web/playwright/organization/organization-creation.e2e.ts b/apps/web/playwright/organization/organization-creation.e2e.tsindex 5618bab9e03..af156486aad 100644--- a/apps/web/playwright/organization/organization-creation.e2e.ts+++ b/apps/web/playwright/organization/organization-creation.e2e.ts@@ -307,7 +307,7 @@ test.describe("Organization", () => {await page.goto("/settings/organizations/new");await test.step("Basic info", async () => {- // These values are infered due to an existing user being signed+ // These values are inferred due to an existing user being signedexpect(await page.locator("input[name=name]").inputValue()).toBe("Example");expect(await page.locator("input[name=slug]").inputValue()).toBe("example");@@ -430,7 +430,7 @@ test.describe("Organization", () => {await page.goto("/teams");await test.step("Has org self serve banner", async () => {- // These values are infered due to an existing user being signed+ // These values are inferred due to an existing user being signedconst selfServeButtonLocator = await page.getByTestId("setup_your_org_action_button");await expect(selfServeButtonLocator).toBeVisible();@@ -439,7 +439,7 @@ test.describe("Organization", () => {});await test.step("Basic info", async () => {- // These values are infered due to an existing user being signed+ // These values are inferred due to an existing user being signedconst slugLocator = await page.locator("input[name=slug]");expect(await page.locator("input[name=name]").inputValue()).toBe("Example");expect(await slugLocator.inputValue()).toBe("example");@@ -561,11 +561,11 @@ async function fillAndSubmitFirstStepAsAdmin(orgSlug: string) {await page.locator("input[name=orgOwnerEmail]").fill(targetOrgEmail);- // Since we are admin fill in this infomation instead of deriving it+ // Since we are admin fill in this information instead of deriving itawait page.locator("input[name=name]").fill(orgName);await page.locator("input[name=slug]").fill(orgSlug);- // Fill in seat infomation+ // Fill in seat informationawait page.locator("input[name=seats]").fill("30");await page.locator("input[name=pricePerSeat]").fill("30");diff --git a/apps/web/playwright/profile.e2e.ts b/apps/web/playwright/profile.e2e.tsindex e7f88b768a8..deefbe58eb3 100644--- a/apps/web/playwright/profile.e2e.ts+++ b/apps/web/playwright/profile.e2e.ts@@ -142,7 +142,7 @@ test.describe("Update Profile", () => {await expect(page.getByTestId("toast-success")).toContainText(email);- // After email verification is successfull. user is sent to /event-types+ // After email verification is successful. user is sent to /event-typesawait page.waitForURL("/event-types");await page.goto("/settings/my-account/profile");diff --git a/apps/web/playwright/signup.e2e.ts b/apps/web/playwright/signup.e2e.tsindex 0475b06b376..61ddd70226d 100644--- a/apps/web/playwright/signup.e2e.ts+++ b/apps/web/playwright/signup.e2e.ts@@ -47,7 +47,7 @@ test.describe("Signup Main Page Test", async () => {test.describe("Email Signup Flow Test", async () => {test.beforeEach(async ({ features }) => {- features.reset(); // This resets to the inital state not an empt yarray+ features.reset(); // This resets to the initial state not an empt yarray});test.afterEach(async ({ users }) => {await users.deleteAll();diff --git a/apps/web/playwright/webhook.e2e.ts b/apps/web/playwright/webhook.e2e.tsindex 8ae9fdecce4..3ae55398a05 100644--- a/apps/web/playwright/webhook.e2e.ts+++ b/apps/web/playwright/webhook.e2e.ts@@ -384,7 +384,7 @@ test.describe("BOOKING_RESCHEDULED", async () => {});});- test("when rescheduling to a booking that already exists, should send a booking rescheduled event with the existant booking uid", async ({+ test("when rescheduling to a booking that already exists, should send a booking rescheduled event with the existent booking uid", async ({page,users,bookings,diff --git a/playwright.config.ts b/playwright.config.tsindex 4f9fbbec3ca..d716554ce54 100644--- a/playwright.config.ts+++ b/playwright.config.ts@@ -314,7 +314,7 @@ expect.extend({export default config;function ensureAppServerIsReadyToServeEmbed(webServer: { port?: number; url?: string }) {- // We should't depend on an embed dependency for App's tests. So, conditionally modify App webServer.+ // We shouldn't depend on an embed dependency for App's tests. So, conditionally modify App webServer.// Only one of port or url can be specified, so remove port.delete webServer.port;webServer.url = `${process.env.NEXT_PUBLIC_WEBAPP_URL}/embed/embed.js`;