Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

refactor(e2e): remove e2e package (#7265)

Vibhu Pandey946a249c8578
diff --git a/e2e/package.json b/e2e/package.json
deleted file mode 100644
index b0d1f6f754..0000000000
--- a/e2e/package.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "e2e",
- "version": "1.0.0",
- "main": "index.js",
- "license": "MIT",
- "devDependencies": {
- "@playwright/test": "^1.22.0",
- "@types/node": "^20.9.2"
- },
- "scripts": {},
- "dependencies": {
- "dotenv": "8.2.0"
- }
-}
diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts
deleted file mode 100644
index b1a0f30a9f..0000000000
--- a/e2e/playwright.config.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { defineConfig, devices } from "@playwright/test";
-import dotenv from "dotenv";
-
-dotenv.config();
-
-export default defineConfig({
- testDir: "./tests",
-
- fullyParallel: true,
-
- forbidOnly: !!process.env.CI,
-
- name: "Signoz E2E",
-
- retries: process.env.CI ? 2 : 0,
-
- reporter: process.env.CI ? "github" : "list",
-
- preserveOutput: "always",
-
- updateSnapshots: "all",
-
- quiet: false,
-
- testMatch: ["**/*.spec.ts"],
-
- use: {
- trace: "on-first-retry",
-
- baseURL:
- process.env.PLAYWRIGHT_TEST_BASE_URL || "https://stagingapp.signoz.io/",
- },
-
- projects: [
- { name: "setup", testMatch: /.*\.setup\.ts/ },
- {
- name: "chromium",
- use: {
- ...devices["Desktop Chrome"],
- // Use prepared auth state.
- storageState: ".auth/user.json",
- },
- dependencies: ["setup"],
- },
- ],
-});
diff --git a/e2e/tests/auth.setup.ts b/e2e/tests/auth.setup.ts
deleted file mode 100644
index 9ca817337f..0000000000
--- a/e2e/tests/auth.setup.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { test, expect } from "@playwright/test";
-import ROUTES from "../../frontend/src/constants/routes";
-import dotenv from "dotenv";
-
-dotenv.config();
-
-const authFile = ".auth/user.json";
-
-test("E2E Login Test", async ({ page }) => {
- await Promise.all([page.goto("/"), page.waitForRequest("**/version")]);
-
- const signup = "Monitor your applications. Find what is causing issues.";
-
- const el = await page.locator(`text=${signup}`);
-
- expect(el).toBeVisible();
-
- await page
- .locator("id=loginEmail")
- .type(
- process.env.PLAYWRIGHT_USERNAME ? process.env.PLAYWRIGHT_USERNAME : ""
- );
-
- await page.getByText("Next").click();
-
- await page
- .locator('input[id="currentPassword"]')
- .fill(
- process.env.PLAYWRIGHT_PASSWORD ? process.env.PLAYWRIGHT_PASSWORD : ""
- );
-
- await page.locator('button[data-attr="signup"]').click();
-
- await expect(page).toHaveURL(ROUTES.APPLICATION);
-
- await page.context().storageState({ path: authFile });
-});
diff --git a/e2e/tests/contants.ts b/e2e/tests/contants.ts
deleted file mode 100644
index e44f7617f6..0000000000
--- a/e2e/tests/contants.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export const SERVICE_TABLE_HEADERS = {
- APPLICATION: "Applicaton",
- P99LATENCY: "P99 latency (in ms)",
- ERROR_RATE: "Error Rate (% of total)",
- OPS_PER_SECOND: "Operations Per Second",
-};
-
-export const DATA_TEST_IDS = {
- NEW_DASHBOARD_BTN: "create-new-dashboard",
-};
diff --git a/e2e/tests/navigation.spec.ts b/e2e/tests/navigation.spec.ts
deleted file mode 100644
index 6f30b2f5d6..0000000000
--- a/e2e/tests/navigation.spec.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { test, expect } from "@playwright/test";
-import ROUTES from "../../frontend/src/constants/routes";
-import { DATA_TEST_IDS, SERVICE_TABLE_HEADERS } from "./contants";
-
-test("Basic Navigation Check across different resources", async ({ page }) => {
- // route to services page and check if the page renders fine with BE contract
- await Promise.all([
- page.goto(ROUTES.APPLICATION),
- page.waitForRequest("**/v1/services"),
- ]);
-
- const p99Latency = page.locator(
- `th:has-text("${SERVICE_TABLE_HEADERS.P99LATENCY}")`
- );
-
- await expect(p99Latency).toBeVisible();
-
- // route to the new trace explorer page and check if the page renders fine
- await page.goto(ROUTES.TRACES_EXPLORER);
-
- await page.waitForLoadState("networkidle");
-
- const listViewTable = await page
- .locator('div[role="presentation"]')
- .isVisible();
-
- expect(listViewTable).toBeTruthy();
-
- // route to the dashboards page and check if the page renders fine
- await Promise.all([
- page.goto(ROUTES.ALL_DASHBOARD),
- page.waitForRequest("**/v1/dashboards"),
- ]);
-
- const newDashboardBtn = await page
- .locator(`data-testid=${DATA_TEST_IDS.NEW_DASHBOARD_BTN}`)
- .isVisible();
-
- expect(newDashboardBtn).toBeTruthy();
-});
diff --git a/e2e/yarn.lock b/e2e/yarn.lock
deleted file mode 100644
index 1fd28ee9e6..0000000000
--- a/e2e/yarn.lock
+++ /dev/null
@@ -1,46 +0,0 @@
-# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-# yarn lockfile v1
-
-
-"@playwright/test@^1.22.0":
- version "1.40.0"
- resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.40.0.tgz#d06c506977dd7863aa16e07f2136351ecc1be6ed"
- integrity sha512-PdW+kn4eV99iP5gxWNSDQCbhMaDVej+RXL5xr6t04nbKLCBwYtA046t7ofoczHOm8u6c+45hpDKQVZqtqwkeQg==
- dependencies:
- playwright "1.40.0"
-
-"@types/node@^20.9.2":
- version "20.9.2"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-20.9.2.tgz#002815c8e87fe0c9369121c78b52e800fadc0ac6"
- integrity sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==
- dependencies:
- undici-types "~5.26.4"
-
- version "8.2.0"
- resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
- integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
-
- version "2.3.2"
- resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
- integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
-
- version "1.40.0"
- resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.40.0.tgz#82f61e5504cb3097803b6f8bbd98190dd34bdf14"
- integrity sha512-fvKewVJpGeca8t0ipM56jkVSU6Eo0RmFvQ/MaCQNDYm+sdvKkMBBWTE1FdeMqIdumRaXXjZChWHvIzCGM/tA/Q==
-
- version "1.40.0"
- resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.40.0.tgz#2a1824b9fe5c4fe52ed53db9ea68003543a99df0"
- integrity sha512-gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==
- dependencies:
- playwright-core "1.40.0"
- optionalDependencies:
- fsevents "2.3.2"
-
-undici-types@~5.26.4:
- version "5.26.5"
- resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
- integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==