diff --git a/src/frontend/package-lock.json b/src/frontend/package-lock.json index 791e88f0e..2d61fd033 100644 --- a/src/frontend/package-lock.json +++ b/src/frontend/package-lock.json @@ -102,6 +102,7 @@ "tailwindcss": "^3.3.3", "tailwindcss-dotted-background": "^1.1.0", "typescript": "^5.2.2", + "ua-parser-js": "^1.0.37", "vite": "^4.5.2" } }, @@ -11067,6 +11068,29 @@ "node": ">=14.17" } }, + "node_modules/ua-parser-js": { + "version": "1.0.37", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.37.tgz", + "integrity": "sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + }, + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + } + ], + "engines": { + "node": "*" + } + }, "node_modules/unified": { "version": "10.1.2", "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", diff --git a/src/frontend/package.json b/src/frontend/package.json index 4df74af54..dd865530e 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -124,6 +124,7 @@ "tailwindcss": "^3.3.3", "tailwindcss-dotted-background": "^1.1.0", "typescript": "^5.2.2", + "ua-parser-js": "^1.0.37", "vite": "^4.5.2" } } diff --git a/src/frontend/playwright.config.ts b/src/frontend/playwright.config.ts index a563c65f7..30e7216c0 100644 --- a/src/frontend/playwright.config.ts +++ b/src/frontend/playwright.config.ts @@ -12,7 +12,7 @@ import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests", /* Run tests in files in parallel */ - fullyParallel: true, + fullyParallel: false, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ diff --git a/src/frontend/run-tests.sh b/src/frontend/run-tests.sh index ac6117ad6..bb4535f5b 100755 --- a/src/frontend/run-tests.sh +++ b/src/frontend/run-tests.sh @@ -54,7 +54,7 @@ sleep 10 poetry install --extras deploy # Start the backend using 'make backend' in the background -LANGFLOW_DATABASE_URL=sqlite:///./temp LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser & +LANGFLOW_DATABASE_URL=sqlite:///./temp LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host 0.0.0.0 --no-open-browser --env-file .env & # Give some time for the backend to start (adjust sleep duration as needed) sleep 25 diff --git a/src/frontend/src/components/NewFLowCard2/index.tsx b/src/frontend/src/components/NewFLowCard2/index.tsx index 7f364cfef..fb472207e 100644 --- a/src/frontend/src/components/NewFLowCard2/index.tsx +++ b/src/frontend/src/components/NewFLowCard2/index.tsx @@ -13,6 +13,7 @@ export default function NewFlowCardComponent() { }); }} className="h-64 w-80 cursor-pointer bg-background pt-4" + data-testid="blank-flow" >
diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 54d37f281..2c989cdeb 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -379,6 +379,7 @@ export default function NodeToolbarComponent({