|
|
@@ -17,7 +17,9 @@ describe("Connected Mode", function() { |
|
|
|
cy.get("#generatePassword__btn").click(); |
|
|
|
cy.get("#generated-password").should("have.value", "hjV@\\5ULp3bIs,6B"); |
|
|
|
cy.get(".fa-save").should("be.visible"); |
|
|
|
cy.get(".fa-sign-out").click(); |
|
|
|
cy.get(".fa-user").first().click(); |
|
|
|
cy.get("#signOutButton").should("be.visible"); |
|
|
|
cy.get("#signOutButton").click(); |
|
|
|
cy.get(".fa-save").should("not.be.visible"); |
|
|
|
}); |
|
|
|
it("can log in and log out", function() { |
|
|
@@ -32,8 +34,8 @@ describe("Connected Mode", function() { |
|
|
|
cy.get("#signInButton").click(); |
|
|
|
cy.get("#siteField").should("be.visible"); |
|
|
|
cy.get(".fa-key").should("be.visible"); |
|
|
|
cy.get(".fa-sign-out").click(); |
|
|
|
cy.wait(5000); |
|
|
|
cy.get(".fa-user").first().click(); |
|
|
|
cy.get("#signOutButton").click(); |
|
|
|
cy.get(".fa-key").should("not.be.visible"); |
|
|
|
}); |
|
|
|
it("reset password page", function() { |
|
|
@@ -59,6 +61,7 @@ describe("Connected Mode", function() { |
|
|
|
.click(); |
|
|
|
cy.get("#siteField").should("have.value", "example.org"); |
|
|
|
cy.get("#login").should("have.value", "contact@example.org"); |
|
|
|
cy.get(".fa-sign-out").click(); |
|
|
|
cy.get(".fa-user").first().click(); |
|
|
|
cy.get("#signOutButton").click(); |
|
|
|
}); |
|
|
|
}); |