diff --git a/cypress/tests/.gitkeep b/cypress/tests/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/cypress/tests/example.cy.js b/cypress/tests/example.cy.js new file mode 100644 index 0000000..f3a1fad --- /dev/null +++ b/cypress/tests/example.cy.js @@ -0,0 +1,20 @@ +context('Example Acceptance Tests', () => { + describe('Visit a page', () => { + beforeEach(() => { + // Given a logged in editor + cy.viewport('macbook-16'); + cy.createContent({ + contentType: 'Document', + contentId: 'document', + contentTitle: 'Test document', + }); + cy.autologin(); + }); + + it('As editor I can add edit a Page', function () { + cy.visit('/document'); + cy.navigate('/document/edit'); + cy.get('#toolbar-save').click(); + }); + }); +});