mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-27 18:52:00 +08:00

* chore: cypress version is updated * chore: tsconfig is updated * update: default fixture json for the api are added * feat: redux-store is exposed to the Cypress * test: Login test is updated * test: global time test for default and metrics application is updated * chore: removed duplicate test case and commented unused lines
25 lines
486 B
TypeScript
25 lines
486 B
TypeScript
/// <reference types="cypress" />
|
|
import ROUTES from 'constants/routes';
|
|
|
|
describe('App Layout', () => {
|
|
beforeEach(() => {
|
|
cy.visit(Cypress.env('baseUrl'));
|
|
});
|
|
|
|
it('Check the user is in Logged Out State', async () => {
|
|
cy.location('pathname').then((e) => {
|
|
expect(e).to.be.equal(ROUTES.SIGN_UP);
|
|
});
|
|
});
|
|
|
|
it('Logged In State', () => {
|
|
const testEmail = 'test@test.com';
|
|
const firstName = 'Test';
|
|
|
|
cy.login({
|
|
email: testEmail,
|
|
name: firstName,
|
|
});
|
|
});
|
|
});
|