Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cypress/e2e/authed_tests/visit_routes.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ describe("Authenticated Route Access Test | CodeLabz", () => {
});
});

it("Visit Bookmarks Page - Passing", function () {
cy.visit(`${this.base_url}bookmarks`);
cy.wait(5000);

cy.location().should(loc => {
expect(loc.href).to.eq(`${this.base_url}bookmarks`);
});
});

it("Visit Organization Page - Passing", function () {
cy.visit(`${this.base_url}org/codelabzorg`);
cy.wait(5000);
Expand Down
9 changes: 9 additions & 0 deletions cypress/e2e/unauthed_test/visit_routes.spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ describe("Unauthenticated Routes Access Test | CodeLabz", () => {
});
});

it("Forbid Visit Bookmarks Page - Passing", function () {
cy.visit(`${this.base_url}bookmarks`);
cy.wait(5000);

cy.location().should(loc => {
expect(loc.href).to.eq(`${this.base_url}login`);
});
});

it("Forbid Visit Organization Page - Passing", function () {
cy.visit(`${this.base_url}org/settings/codelabzorg`);
cy.wait(5000);
Expand Down
Loading