Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Jul 8, 2024
1 parent 4c09d30 commit d1b0830
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('Changing Settings', () => {
describe.only('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,7 +759,8 @@ context('Settings page', () => {
modal().get('button').contains('Cancel').click();

// Check the modal is closed
modal().then(($modal) => $modal.not.is(':visible'));
cy.get('h3').should('not.have.text', 'Enter Activity Logs Settings');

// Check the data is not changed
cy.get('@initialRetentionTime').then((text) =>
section()
Expand Down Expand Up @@ -792,7 +793,6 @@ 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 d1b0830

Please sign in to comment.