diff --git a/test/e2e/cypress/e2e/settings.cy.js b/test/e2e/cypress/e2e/settings.cy.js index 0d84da8a3e..4045139c91 100644 --- a/test/e2e/cypress/e2e/settings.cy.js +++ b/test/e2e/cypress/e2e/settings.cy.js @@ -701,7 +701,7 @@ context('Settings page', () => { .as('initialRetentionTime'); }); - describe.only('Changing Settings', () => { + describe('Changing Settings', () => { it('should change retention time', () => { // the initial retention time is read before the settings are changed cy.get('@initialRetentionTime').then((text) => @@ -759,8 +759,7 @@ context('Settings page', () => { modal().get('button').contains('Cancel').click(); // Check the modal is closed - cy.get('h3').should('not.have.text', 'Enter Activity Logs Settings'); - + modal().then(($modal) => $modal.not.is(':visible')); // Check the data is not changed cy.get('@initialRetentionTime').then((text) => section() @@ -793,6 +792,7 @@ context('Settings page', () => { modal().get('button').contains('Save Settings').click(); // Check we still show the modal + modal().then(($modal) => $modal.is(':visible')); // Close the modal modal().get('button').contains('Cancel').click();