Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Jul 9, 2024
1 parent d9a76a6 commit 8a82d57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/cypress/e2e/settings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8a82d57

Please sign in to comment.