mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 07:56:56 +00:00
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 {};
|