Add cypress tests for new features
Tests are for MS-375 and 373
This commit is contained in:
parent
5069c5b5ec
commit
b4fbfce684
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue