Add cypress tests for new features

Tests are for MS-375 and 373
This commit is contained in:
Ramon Wenger 2022-05-24 22:49:39 +02:00
parent 5069c5b5ec
commit b4fbfce684
1 changed files with 17 additions and 0 deletions

View File

@ -88,4 +88,21 @@ describe('Snapshot', () => {
cy.getByDataCy('module-title').should('exist');
cy.getByDataCy('snapshot-header').should('not.exist');
});
it('Renames Snapshot', () => {
cy.visit('module/miteinander-reden/snapshots');
cy.getByDataCy('snapshot-title').should('equal', 'Old Title');
cy.getByDataCy('rename-snapshot-button').click();
cy.getByDataCy('snapshot-title-input').type('New Title');
cy.getByDataCy('save-button').click();
cy.getByDataCy('snapshot-title').should('equal', 'New Title');
});
it('Renames Snapshot', () => {
cy.visit('module/miteinander-reden/snapshots');
cy.getByDataCy('snapshot').should('have.length', 1);
cy.getByDataCy('delete-snapshot-button').click();
cy.getByDataCy('confirm-button').click();
cy.getByDataCy('snapshot').should('have.length', 0);
});
});