Files
CMS-Server/cypress/e2e/unauthed.cy.js
Matt Batchelder 6e3929c459 init commit
2026-02-11 20:55:38 -05:00

20 lines
553 B
JavaScript

describe('Unauthenticated CMS access', function () {
it('should visit the login page and check the version', function () {
cy.visit('/login').then(() => {
cy.url().should('include', '/login');
cy.contains('Version 4.');
});
});
it('should redirect to login when an authenticated page is requested', function() {
cy.visit('/logout').then(() => {
cy.visit('/layout/view').then(() => {
cy.url().should('include', '/login');
});
});
});
});