Files
Cloud-CMS/cypress/e2e/unauthed.cy.js
Matt Batchelder 05ce0da296 Initial Upload
2025-12-02 10:32:59 -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');
});
});
});
});