fix: fix playwright typos (#19794)

Found via `codespell -q 3 -S "*.svg,./apps/web/public/static/locales,./packages/app-store/stripepayment/lib/currencyOptions.ts,./packages/lib/freeEmailDomainCheck/freeEmailDomains.ts" -L afterall,atleast,datea,fo,incase,ist,nam,noone,notin,optionel,perview,pris,reccuring`
This commit is contained in:
luzpaz
2025-03-10 07:39:58 +00:00
committed by GitHub
parent b0e3cc4dd2
commit 1848cd55b1
15 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -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 onboarding
await 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 anymore
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -28,7 +28,7 @@ test.afterEach(async ({ users }) => {
// used as a multiplier for duration limits
const EVENT_LENGTH = 30;
// limits used when testing each limit seperately
// limits used when testing each limit separately
const BOOKING_LIMITS_SINGLE = {
PER_DAY: 2,
PER_WEEK: 2,
+1 -1
View File
@@ -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 creation
return {
init: async () => {
const features = await prisma.feature.findMany();
+1 -1
View File
@@ -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 user
debug: async (message: string | Record<string, JSONValue>) => {
await prisma.user.update({
where: { id: store.user.id },
+1 -1
View File
@@ -100,7 +100,7 @@ const addLocationIntegrationToFirstEvent = async function ({ user }: { user: { u
async 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-timeout
+1 -1
View File
@@ -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 },
+1 -1
View File
@@ -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 }) => {
+2 -2
View File
@@ -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();
});
+1 -1
View File
@@ -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();
@@ -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 signed
expect(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 signed
const 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 signed
const 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 it
await page.locator("input[name=name]").fill(orgName);
await page.locator("input[name=slug]").fill(orgSlug);
// Fill in seat infomation
// Fill in seat information
await page.locator("input[name=seats]").fill("30");
await page.locator("input[name=pricePerSeat]").fill("30");
+1 -1
View File
@@ -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-types
await page.waitForURL("/event-types");
await page.goto("/settings/my-account/profile");
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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`;