describe("Login Account", () => { before(() => { cy.disconnectAllAccountsFromAllDapps(); }); it("Should show connect wallet if not logged in", () => { cy.visit(`/`); cy.findByRole("button", { name: /connect wallet/i }).should("be.visible"); }); it("Should trigger login modal and ask for metamask login", () => { cy.visit("/"); cy.findByRole("button", { name: /connect wallet/i }).click(); cy.acceptMetamaskAccess().should("be.true"); cy.switchToAccount(1); cy.switchToCypressWindow().should("be.true"); cy.findByText(/please sign in using metamask account:/i).should("be.visible"); cy.confirmMetamaskSignatureRequest(); cy.findByText(/0xf39f\.\.\.2266/i).should("be.visible"); }); });