Files
Cloud-CMS/cypress/e2e/unauthed.cy.js

20 lines
553 B
JavaScript
Raw Normal View History

2025-12-02 10:32:59 -05:00
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');
});
});
});
});