From a9d8cacbb557138b43ebbfacc26a7b074e1e5e31 Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Tue, 26 Sep 2023 11:29:24 +0100 Subject: [PATCH] Skip bool --- apps/web/playwright/signup.e2e.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/signup.e2e.ts b/apps/web/playwright/signup.e2e.ts index a7c55cfe88..bfdf0a6d9e 100644 --- a/apps/web/playwright/signup.e2e.ts +++ b/apps/web/playwright/signup.e2e.ts @@ -7,6 +7,8 @@ import { test } from "./lib/fixtures"; test.describe.configure({ mode: "parallel" }); +const SKIP_PREMIUM_USERNAME = !!IS_CALCOM; + test.describe("Signup Flow Test", async () => { test.afterAll(async ({ users }) => { await users.deleteAll(); @@ -89,7 +91,7 @@ test.describe("Signup Flow Test", async () => { }); test("Premium Username Flow - creates stripe checkout", async ({ page, users }) => { // eslint-disable-next-line playwright/no-skipped-test - test.skip(!IS_CALCOM, "Only run on Cal.com"); + test.skip(!SKIP_PREMIUM_USERNAME, "Only run on Cal.com"); // Signup with premium username name await page.goto("/signup"); @@ -113,7 +115,7 @@ test.describe("Signup Flow Test", async () => { }); test("Premium Username Flow - SelfHosted", async ({ page, users }) => { // eslint-disable-next-line playwright/no-skipped-test - test.skip(IS_CALCOM, "Only run on Selfhosted Instances"); + test.skip(SKIP_PREMIUM_USERNAME, "Only run on Selfhosted Instances"); // Signup with premium username name await page.goto("/signup");