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.

feat: playwright is configured

Palash guptab2fc4776b76c
diff --git a/frontend/package.json b/frontend/package.json
index 3dc652985e..49fa763d5d 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -15,7 +15,7 @@
"postinstall": "yarn husky:configure",
"husky:configure": "cd .. && husky install frontend/.husky",
"playwright": "playwright test --config=./playwright.config.ts",
- "playwright:local:debug": "PWDEBUG=1 yarn playwright"
+ "playwright:local:debug": "PWDEBUG=console yarn playwright"
},
"engines": {
"node": ">=12.13.0"
diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts
index 604c67a03f..9747285a66 100644
--- a/frontend/playwright.config.ts
+++ b/frontend/playwright.config.ts
@@ -1,4 +1,4 @@
-import { devices, PlaywrightTestConfig } from '@playwright/test';
+import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
@@ -7,24 +7,12 @@ const config: PlaywrightTestConfig = {
name: 'Signoz',
testDir: './tests',
use: {
- trace: 'on-first-retry',
+ trace: 'retain-on-failure',
+ baseURL: process.env.FRONTEND_API_ENDPOINT,
},
updateSnapshots: 'all',
fullyParallel: false,
quiet: true,
- projects: [
- {
- name: 'chromium',
- use: { ...devices['Desktop Chrome'] },
- },
- {
- name: 'firefox',
- use: { ...devices['Desktop Firefox'] },
- },
- {
- name: 'webkit',
- use: { ...devices['Desktop Safari'] },
- },
- ],
};
+
export default config;
diff --git a/frontend/tests/signup/index.spec.ts b/frontend/tests/signup/index.spec.ts
new file mode 100644
index 0000000000..a7e06f4fa6
--- /dev/null
+++ b/frontend/tests/signup/index.spec.ts
@@ -0,0 +1,17 @@
+import { expect, test } from '@playwright/test';
+import ROUTES from 'constants/routes';
+
+test('Login Page', async ({ page, baseURL }) => {
+ const loginPage = `${baseURL}${ROUTES.LOGIN}`;
+
+ await page.goto(loginPage, {
+ waitUntil: 'networkidle',
+ });
+
+ const signup = 'Monitor your applications. Find what is causing issues.';
+
+ // Click text=Monitor your applications. Find what is causing issues.
+ const el = page.locator(`text=${signup}`);
+
+ expect(el).toBeVisible();
+});