Skip to content

Commit ec10299

Browse files
committed
fix: assert succesfull login
1 parent c0e40dd commit ec10299

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

e2e/cypress/e2e/users/register.cy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ describe("user auth and registration flow", () => {
1212

1313
it("creates a user and displays changes in users table", () => {
1414
cy.login("[email protected]", "TestPass123!");
15+
cy.location("pathname").should("eq", "/");
16+
1517
cy.visit("http://localhost:3200/users");
1618
cy.get('a[href="/users/new"]').filter(":visible").click();
1719
cy.get("[name=FirstName]").type("Test");
@@ -37,6 +39,8 @@ describe("user auth and registration flow", () => {
3739

3840
it("edits a user and displays changes in users table", () => {
3941
cy.login("[email protected]", "TestPass123!");
42+
cy.location("pathname").should("eq", "/");
43+
4044
cy.visit("http://localhost:3200/users");
4145

4246
cy.get("tbody tr").contains("td", "Test User").parent("tr").find("td a").click();

0 commit comments

Comments
 (0)