mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-12 12:01:27 +08:00

* chore: video config is updated as it will not generate any video while running cypress * chore: cypress.env.json is added in the env file * chore: tsConfig is updated * feature: Cypress is updated with some of the test cases * chore: default test case is removed * chore: convertToNanoSecondsToSecond function is updated * chore: lock files, node_modules are ignored in git * test: metric are updated Co-authored-by: Ankit Nayan <ankit@signoz.io>
27 lines
498 B
TypeScript
27 lines
498 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,
|
|
});
|
|
});
|
|
});
|
|
|
|
export {};
|