Skip to content

Commit

Permalink
Cypress example at least
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Jul 4, 2024
1 parent a71b932 commit 4c2860f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Empty file added cypress/tests/.gitkeep
Empty file.
20 changes: 20 additions & 0 deletions cypress/tests/example.cy.js
Original file line number Diff line number Diff line change
@@ -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();
});
});
});

0 comments on commit 4c2860f

Please sign in to comment.