mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-15 01:01:47 +08:00

* test: sign-up test are updated * test: fail test of version api is added * test: more test case over signup page is added * test: coverage is added * chore: auth json is updated * test: auth token and refresh token test is updated
23 lines
617 B
TypeScript
23 lines
617 B
TypeScript
import { expect, Page, test } from '@playwright/test';
|
|
import ROUTES from 'constants/routes';
|
|
|
|
import { loginApi } from '../fixtures/common';
|
|
|
|
let page: Page;
|
|
|
|
test.describe('Service Page', () => {
|
|
test.beforeEach(async ({ baseURL, browser }) => {
|
|
const context = await browser.newContext({ storageState: 'tests/auth.json' });
|
|
const newPage = await context.newPage();
|
|
|
|
await loginApi(newPage);
|
|
|
|
await newPage.goto(`${baseURL}${ROUTES.APPLICATION}`);
|
|
|
|
page = newPage;
|
|
});
|
|
test('Serice Page is rendered', async ({ baseURL }) => {
|
|
await expect(page).toHaveURL(`${baseURL}${ROUTES.APPLICATION}`);
|
|
});
|
|
});
|