palash-signoz 66b423588e
Feature(FE): cypress base test case are updated (#275)
* 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>
2021-08-27 12:21:24 +05:30

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 {};