Initial Upload
This commit is contained in:
19
cypress/e2e/unauthed.cy.js
Normal file
19
cypress/e2e/unauthed.cy.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user