Skip to content

Commit da1d5df

Browse files
committed
Remove interactions for demo
1 parent 333cc99 commit da1d5df

File tree

2 files changed

+1
-106
lines changed

2 files changed

+1
-106
lines changed

cypress/tests/ui/auth.spec.ts

+1-26
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,7 @@ describe("User Sign-up and Login", function () {
3030
cy.location("pathname").should("equal", "/");
3131
});
3232

33-
it("should remember a user for 30 days after login", function () {
34-
cy.database("find", "users").then((user: User) => {
35-
cy.login(user.username, "s3cret", { rememberUser: true });
36-
});
37-
38-
// Verify Session Cookie
39-
cy.getCookie("connect.sid").should("have.property", "expiry");
40-
41-
// Logout User
42-
if (isMobile()) {
43-
cy.getBySel("sidenav-toggle").click();
44-
}
45-
cy.getBySel("sidenav-signout").click();
46-
cy.location("pathname").should("eq", "/signin");
47-
cy.visualSnapshot("Redirect to SignIn");
48-
});
49-
50-
it("should allow a visitor to sign-up, login, and logout", function () {
33+
it("should allow a visitor to sign-up and login", function () {
5134
const userInfo = {
5235
firstName: "Bob",
5336
lastName: "Ross",
@@ -98,14 +81,6 @@ describe("User Sign-up and Login", function () {
9881

9982
cy.getBySel("transaction-list").should("be.visible");
10083
cy.visualSnapshot("Transaction List is visible after User Onboarding");
101-
102-
// Logout User
103-
if (isMobile()) {
104-
cy.getBySel("sidenav-toggle").click();
105-
}
106-
cy.getBySel("sidenav-signout").click();
107-
cy.location("pathname").should("eq", "/signin");
108-
cy.visualSnapshot("Redirect to SignIn");
10984
});
11085

11186
it("should display login errors", function () {

cypress/tests/ui/user-settings.spec.ts

-80
This file was deleted.

0 commit comments

Comments
 (0)