Scheduling infrastructure for absolutely everyone.
Revert "Fix conflicts for embed tests (#7311)" (#7670)
Omar López6a9704349d3d
diff --git a/apps/web/package.json b/apps/web/package.jsonindex 62bc4b88022..3c8e033822f 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -13,7 +13,6 @@"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 700bf26faea..1ce4a342240 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": "vite build --mode development",+ "__dev": "yarn tailwind && 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": "run-p 'tailwind --watch' 'buildWatchAndServer'",+ "dev": "yarn tailwind && 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 bccf6081f42..29f7fcb90d0 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 embed-dev",+ command: "yarn run-p 'embed-dev' 'embed-web-start'",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 85b22cab4c5..6dc4e850d8a 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 f0675eadea3..7fee307daac 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 type { PlaywrightTestConfig } from "@playwright/test";+import { PlaywrightTestConfig, devices } 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",- port: 3101,+ command: "yarn run-p 'embed-dev' 'embed-web-start'",+ port: 3000,timeout: 60_000,reuseExistingServer: !process.env.CI,},diff --git a/turbo.json b/turbo.jsonindex d96637a73d5..c5532038213 100644--- a/turbo.json+++ b/turbo.json@@ -47,12 +47,6 @@"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": []@@ -159,7 +153,6 @@"@calcom/prisma#db-seed","@calcom/web#build","^build",- "@calcom/web#start:bg","^embed-tests-update-snapshots:ci"]},