From fb14383021eef9e9c3fe3b2863b33fc4eb15d250 Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Tue, 19 Sep 2023 09:47:57 +0100 Subject: [PATCH] Change playwright to - playright/test --- __checks__/calcom-dashboard.check.js | 2 +- __checks__/location-link.check.js | 2 +- apps/web/playwright/signup.e2e.ts | 2 +- yarn.lock | 23 +---------------------- 4 files changed, 4 insertions(+), 25 deletions(-) diff --git a/__checks__/calcom-dashboard.check.js b/__checks__/calcom-dashboard.check.js index 843c1e3d34..82752459e7 100644 --- a/__checks__/calcom-dashboard.check.js +++ b/__checks__/calcom-dashboard.check.js @@ -4,7 +4,7 @@ */ // Create a Chromium browser -const { chromium } = require("playwright"); +const { chromium } = require("@playwright/test"); // Checkly supports top level await, but we wrap your code in an async function so you can run it locally too. async function run() { diff --git a/__checks__/location-link.check.js b/__checks__/location-link.check.js index 85cbaafbcd..7092c59d80 100644 --- a/__checks__/location-link.check.js +++ b/__checks__/location-link.check.js @@ -4,7 +4,7 @@ */ // Create a Chromium browser -const { chromium } = require("playwright"); +const { chromium } = require("@playwright/test"); // Checkly supports top level await, but we wrap your code in an async function so you can run it locally too. async function run() { diff --git a/apps/web/playwright/signup.e2e.ts b/apps/web/playwright/signup.e2e.ts index 4aa3eb8ba2..2a9a0b5500 100644 --- a/apps/web/playwright/signup.e2e.ts +++ b/apps/web/playwright/signup.e2e.ts @@ -9,7 +9,7 @@ test.describe("Signup Validation", async () => { test("Username is taken", async ({ page, users }) => { // log in trail user await test.step("Sign up", async () => { - const pro = await users.create({ + await users.create({ username: "pro", }); diff --git a/yarn.lock b/yarn.lock index c8fef97305..252d812479 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4286,6 +4286,7 @@ __metadata: "@hookform/resolvers": ^2.9.7 "@juggle/resize-observer": ^3.4.0 "@next/bundle-analyzer": ^13.1.6 + "@playwright/test": ^1.31.2 "@radix-ui/react-accordion": ^1.0.0 "@radix-ui/react-dropdown-menu": ^2.0.5 "@radix-ui/react-navigation-menu": ^1.0.0 @@ -4334,10 +4335,8 @@ __metadata: next: ^13.4.6 next-auth: ^4.22.1 next-axiom: ^0.17.0 - next-collect: ^0.2.1 next-i18next: ^13.2.2 next-seo: ^6.0.0 - playwright: ^1.31.2 postcss: ^8.4.18 prism-react-renderer: ^1.3.5 react: ^18.2.0 @@ -30090,26 +30089,6 @@ __metadata: languageName: node linkType: hard -"playwright-core@npm:1.37.1": - version: 1.37.1 - resolution: "playwright-core@npm:1.37.1" - bin: - playwright-core: cli.js - checksum: 69f818da2230057584140d5b3af7778a4f4a822b5b18d133abfc5d259128becb943c343a2ddf6b0635277a69f28983e83e2bc3fce23595ececb1e410475b6368 - languageName: node - linkType: hard - -"playwright@npm:^1.31.2": - version: 1.37.1 - resolution: "playwright@npm:1.37.1" - dependencies: - playwright-core: 1.37.1 - bin: - playwright: cli.js - checksum: 99406ef3e15b83a659cb23ef1d92d9935789aad430580d1e0371087dfdf266891483c6f97cfa06bf5f49f081eacd44245d05d20714f98531edef4cc317044d6b - languageName: node - linkType: hard - "pngjs@npm:^3.0.0, pngjs@npm:^3.3.3": version: 3.4.0 resolution: "pngjs@npm:3.4.0"