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/tests/end-to-end/auto_login.spec.ts b/src/frontend/tests/end-to-end/auto_login.spec.ts
index 8231e6a29..3208f754f 100644
--- a/src/frontend/tests/end-to-end/auto_login.spec.ts
+++ b/src/frontend/tests/end-to-end/auto_login.spec.ts
@@ -1,5 +1,8 @@
import { test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(1000);
+ test.setTimeout(120000);
+});
test.describe("Auto_login tests", () => {
test("auto_login sign in", async ({ page }) => {
await page.goto("http:localhost:3000/");
@@ -9,11 +12,18 @@ test.describe("Auto_login tests", () => {
test("auto_login block_admin", async ({ page }) => {
await page.goto("http:localhost:3000/");
await page.locator('//*[@id="new-project-btn"]').click();
+ await page.waitForTimeout(5000);
+
await page.goto("http:localhost:3000/login");
await page.locator('//*[@id="new-project-btn"]').click();
+ await page.waitForTimeout(5000);
+
await page.goto("http:localhost:3000/admin");
await page.locator('//*[@id="new-project-btn"]').click();
+ await page.waitForTimeout(5000);
+
await page.goto("http:localhost:3000/admin/login");
await page.locator('//*[@id="new-project-btn"]').click();
+ await page.waitForTimeout(5000);
});
});
diff --git a/src/frontend/tests/end-to-end/codeAreaModalComponent.spec.ts b/src/frontend/tests/end-to-end/codeAreaModalComponent.spec.ts
index 0994fb898..1ee611fc4 100644
--- a/src/frontend/tests/end-to-end/codeAreaModalComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/codeAreaModalComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(2000);
+ test.setTimeout(120000);
+});
test("CodeAreaModalComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/dragAndDrop.spec.ts b/src/frontend/tests/end-to-end/dragAndDrop.spec.ts
index 6b43f3e03..bcaa08db0 100644
--- a/src/frontend/tests/end-to-end/dragAndDrop.spec.ts
+++ b/src/frontend/tests/end-to-end/dragAndDrop.spec.ts
@@ -1,6 +1,9 @@
import { expect, test } from "@playwright/test";
import { readFileSync } from "fs";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(3000);
+ test.setTimeout(120000);
+});
test.describe("drag and drop test", () => {
///
test("drop collection", async ({ page }) => {
diff --git a/src/frontend/tests/end-to-end/dropdownComponent.spec.ts b/src/frontend/tests/end-to-end/dropdownComponent.spec.ts
index 32c402725..31afd7614 100644
--- a/src/frontend/tests/end-to-end/dropdownComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/dropdownComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(4000);
+ test.setTimeout(120000);
+});
test("dropDownComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/floatComponent.spec.ts b/src/frontend/tests/end-to-end/floatComponent.spec.ts
index 4216b0888..ec4363b38 100644
--- a/src/frontend/tests/end-to-end/floatComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/floatComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(5000);
+ test.setTimeout(120000);
+});
test("FloatComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/flowPage.spec.ts b/src/frontend/tests/end-to-end/flowPage.spec.ts
index e3f422f7c..69f812f8a 100644
--- a/src/frontend/tests/end-to-end/flowPage.spec.ts
+++ b/src/frontend/tests/end-to-end/flowPage.spec.ts
@@ -1,4 +1,8 @@
import { Page, test } from "@playwright/test";
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(6000);
+ test.setTimeout(120000);
+});
test.describe("Flow Page tests", () => {
async function goToFlowPage(page: Page) {
diff --git a/src/frontend/tests/end-to-end/group.spec.ts b/src/frontend/tests/end-to-end/group.spec.ts
index e8ca742cc..fe717b8f8 100644
--- a/src/frontend/tests/end-to-end/group.spec.ts
+++ b/src/frontend/tests/end-to-end/group.spec.ts
@@ -1,6 +1,9 @@
import { expect, test } from "@playwright/test";
import { readFileSync } from "fs";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(7000);
+ test.setTimeout(120000);
+});
test.describe("group node test", () => {
///
test("group and ungroup updating values", async ({ page }) => {
@@ -27,7 +30,7 @@ test.describe("group node test", () => {
return dt;
}, jsonContent);
- page.waitForTimeout(2000);
+ await page.waitForTimeout(2000);
// Now dispatch
await page.dispatchEvent(
diff --git a/src/frontend/tests/end-to-end/inputComponent.spec.ts b/src/frontend/tests/end-to-end/inputComponent.spec.ts
index 06e177722..a5aea8fa2 100644
--- a/src/frontend/tests/end-to-end/inputComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/inputComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(8000);
+ test.setTimeout(120000);
+});
test("InputComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/intComponent.spec.ts b/src/frontend/tests/end-to-end/intComponent.spec.ts
index 86ebe59af..c591cab51 100644
--- a/src/frontend/tests/end-to-end/intComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/intComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(9000);
+ test.setTimeout(120000);
+});
test("IntComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/keyPairListComponent.spec.ts b/src/frontend/tests/end-to-end/keyPairListComponent.spec.ts
index 6f80e5be8..80e080dd7 100644
--- a/src/frontend/tests/end-to-end/keyPairListComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/keyPairListComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(10000);
+ test.setTimeout(120000);
+});
test("KeypairListComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/langflowShortcuts.spec.ts b/src/frontend/tests/end-to-end/langflowShortcuts.spec.ts
index 40e85cb42..e3d2e3916 100644
--- a/src/frontend/tests/end-to-end/langflowShortcuts.spec.ts
+++ b/src/frontend/tests/end-to-end/langflowShortcuts.spec.ts
@@ -1,5 +1,9 @@
import { expect, test } from "@playwright/test";
import uaParser from "ua-parser-js";
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(11000);
+ test.setTimeout(120000);
+});
test("LangflowShortcuts", async ({ page }) => {
const getUA = await page.evaluate(() => navigator.userAgent);
const userAgentInfo = uaParser(getUA);
diff --git a/src/frontend/tests/end-to-end/nestedComponent.spec.ts b/src/frontend/tests/end-to-end/nestedComponent.spec.ts
index 6ee1b7c28..3eed92059 100644
--- a/src/frontend/tests/end-to-end/nestedComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/nestedComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(12000);
+ test.setTimeout(120000);
+});
test("NestedComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/promptModalComponent.spec.ts b/src/frontend/tests/end-to-end/promptModalComponent.spec.ts
index 46841a6bc..cadf3a088 100644
--- a/src/frontend/tests/end-to-end/promptModalComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/promptModalComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(13000);
+ test.setTimeout(120000);
+});
test("PromptTemplateComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);
diff --git a/src/frontend/tests/end-to-end/saveComponents.spec.ts b/src/frontend/tests/end-to-end/saveComponents.spec.ts
index d5acac469..c9a692553 100644
--- a/src/frontend/tests/end-to-end/saveComponents.spec.ts
+++ b/src/frontend/tests/end-to-end/saveComponents.spec.ts
@@ -1,6 +1,9 @@
import { Page, expect, test } from "@playwright/test";
import { readFileSync } from "fs";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(14000);
+ test.setTimeout(120000);
+});
test.describe("save component tests", () => {
async function saveComponent(page: Page, pattern: RegExp, n: number) {
for (let i = 0; i < n; i++) {
diff --git a/src/frontend/tests/end-to-end/toggleComponent.spec.ts b/src/frontend/tests/end-to-end/toggleComponent.spec.ts
index 374ecd491..7875261a4 100644
--- a/src/frontend/tests/end-to-end/toggleComponent.spec.ts
+++ b/src/frontend/tests/end-to-end/toggleComponent.spec.ts
@@ -1,5 +1,8 @@
import { expect, test } from "@playwright/test";
-
+test.beforeEach(async ({ page }) => {
+ await page.waitForTimeout(15000);
+ test.setTimeout(120000);
+});
test("ToggleComponent", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.waitForTimeout(2000);