Scheduling infrastructure for absolutely everyone.
Fix conflicts for embed tests (#7311)
Omar López8b47c064ff4a
diff --git a/apps/web/package.json b/apps/web/package.jsonindex fd6d84ff92c..803b9d70ed7 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -13,6 +13,7 @@"type-check": "tsc --pretty --noEmit","build": "next build","start": "next start",+ "start:bg": "next start &","lint": "eslint . --ignore-path .gitignore","lint:fix": "eslint . --ext .ts,.js,.tsx,.jsx --fix","lint:report": "eslint . --format json --output-file ../../lint-results/web.json",diff --git a/packages/embeds/embed-core/package.json b/packages/embeds/embed-core/package.jsonindex 1ce4a342240..700bf26faea 100644--- a/packages/embeds/embed-core/package.json+++ b/packages/embeds/embed-core/package.json@@ -14,13 +14,13 @@"embed-dev": "yarn workspace @calcom/embed-core dev","embed-web-start": "yarn workspace @calcom/web start","__build": "yarn tailwind && vite build && tsc --emitDeclarationOnly --declarationDir dist && cp -r ../../../apps/web/public/embed ./dist/",- "__dev": "yarn tailwind && vite build --mode development",+ "__dev": "vite build --mode development","build": "NEXT_PUBLIC_EMBED_FINGER_PRINT=$(git rev-parse --short HEAD) yarn __build","build-preview": "PREVIEW_BUILD=1 yarn __build ","vite": "vite","tailwind": "yarn tailwindcss -i ./src/styles.css -o ./src/tailwind.generated.css","buildWatchAndServer": "run-p '__dev' 'vite --port 3100 --strict-port --open'",- "dev": "yarn tailwind && run-p 'tailwind --watch' 'buildWatchAndServer'",+ "dev": "run-p 'tailwind --watch' 'buildWatchAndServer'","dev-real": "vite dev --port 3100","type-check": "tsc --pretty --noEmit","lint": "eslint --ext .ts,.js src",diff --git a/packages/embeds/embed-core/playwright/config/playwright.config.ts b/packages/embeds/embed-core/playwright/config/playwright.config.tsindex 29f7fcb90d0..bccf6081f42 100644--- a/packages/embeds/embed-core/playwright/config/playwright.config.ts+++ b/packages/embeds/embed-core/playwright/config/playwright.config.ts@@ -33,7 +33,7 @@ const config: PlaywrightTestConfig = {},webServer: {// Run servers in parallel as Playwright doesn't support two different webserver commands at the moment See https://github.com/microsoft/playwright/issues/8206- command: "yarn run-p 'embed-dev' 'embed-web-start'",+ command: "yarn embed-dev",port: 3100,timeout: 60_000,reuseExistingServer: !CI,diff --git a/packages/embeds/embed-core/playwright/tests/action-based.test.ts-snapshots/event-types-list-chromium-darwin.png b/packages/embeds/embed-core/playwright/tests/action-based.test.ts-snapshots/event-types-list-chromium-darwin.pngindex 6dc4e850d8a..85b22cab4c5 100644Binary files a/packages/embeds/embed-core/playwright/tests/action-based.test.ts-snapshots/event-types-list-chromium-darwin.png and b/packages/embeds/embed-core/playwright/tests/action-based.test.ts-snapshots/event-types-list-chromium-darwin.png differdiff --git a/packages/embeds/embed-react/playwright/config/playwright.config.ts b/packages/embeds/embed-react/playwright/config/playwright.config.tsindex 7fee307daac..f0675eadea3 100644--- a/packages/embeds/embed-react/playwright/config/playwright.config.ts+++ b/packages/embeds/embed-react/playwright/config/playwright.config.ts@@ -1,4 +1,4 @@-import { PlaywrightTestConfig, devices } from "@playwright/test";+import type { PlaywrightTestConfig } from "@playwright/test";import path from "path";//TODO: Move the common config to embed-playwright-config and let core and react use the base. Along with config there would be base fixtures and expect custom matchers as well.@@ -19,8 +19,8 @@ const projects = baseConfig.projects?.map((project) => {const config: PlaywrightTestConfig = {...baseConfig,webServer: {- command: "yarn run-p 'embed-dev' 'embed-web-start'",- port: 3000,+ command: "yarn run-p embed-dev",+ port: 3101,timeout: 60_000,reuseExistingServer: !process.env.CI,},diff --git a/turbo.json b/turbo.jsonindex c5532038213..d96637a73d5 100644--- a/turbo.json+++ b/turbo.json@@ -47,6 +47,12 @@"outputs": []},"@calcom/web#start": {+ "cache": false,+ "persistent": true,+ "dependsOn": ["@calcom/prisma#db-deploy"],+ "outputs": []+ },+ "@calcom/web#start:bg": {"cache": false,"dependsOn": ["@calcom/prisma#db-deploy"],"outputs": []@@ -153,6 +159,7 @@"@calcom/prisma#db-seed","@calcom/web#build","^build",+ "@calcom/web#start:bg","^embed-tests-update-snapshots:ci"]},