describe('Typemill System Settings', function() { before(function () { cy.visit('/tm/login') cy.url().should('include','/tm/login') cy.get('input[name="username"]').type('trendschau') cy.get('input[name="password"]').type('password') cy.get('form').submit() cy.url().should('include','/tm/content') cy.getCookie('typemill-session').should('exist') cy.visit('/tm/settings') cy.url().should('include','/tm/settings') }) beforeEach(function () { Cypress.Cookies.preserveOnce('typemill-session') }) it('validates the form', function() { // fill out valid data cy.get('input[name="settings[title]"]') .clear() .type('Cypress