From 4c2860ff43166cc5ef404babda8d59a9dfc86963 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 4 Jul 2024 11:32:49 +0200 Subject: [PATCH] Cypress example at least --- cypress/tests/.gitkeep | 0 cypress/tests/example.cy.js | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 cypress/tests/.gitkeep create mode 100644 cypress/tests/example.cy.js 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(); + }); + }); +});