great-furniture-24480
05/25/2023, 2:09 PMgray-kilobyte-89541
05/25/2023, 2:58 PMcy.reload()
to the first onegreat-furniture-24480
05/25/2023, 7:05 PMgray-kilobyte-89541
05/25/2023, 7:21 PMechoing-tent-95037
05/25/2023, 7:25 PMit
. I don't think theres an easy way for cypress to test this.it
but that kind of defeats the purpose of what you ware wanting to test.gray-kilobyte-89541
05/25/2023, 8:33 PMechoing-tent-95037
05/25/2023, 9:15 PMgreat-furniture-24480
05/26/2023, 9:19 AMgray-kilobyte-89541
05/26/2023, 2:12 PMgreat-furniture-24480
05/28/2023, 1:30 PMit("Login with remember me Checked", () => {
cy.visit("https://go.beebolt.com/login");
cy.get("#email").type(email);
cy.get("#password").type(password);
cy.get('#rememberMe')
cy.get("button").contains("Log In").click();
cy.url().should("include", "/dashboard");
cy.contains("button.ant-btn", "Dashboard");
});
What I am doing in the above test is I am checking the remember me checkbox, assuming that It will work as the session works in Cypress. and the next it block will redirect to /dashboard
without login, it's not working. You suggest using reload but reload works the same for checking or unchecking remember me.gray-kilobyte-89541
05/28/2023, 1:57 PMgreat-furniture-24480
05/28/2023, 2:45 PM