diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js index 6219893f5..35ad9bb33 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js @@ -157,7 +157,7 @@ describe('Aliases', () => { body: { test: 'test' }, }); - // confirm uncommitted_operations is 1 after indexing doc + // confirm uncommitted_operations is not 0 after indexing doc cy.request({ method: 'GET', url: `${Cypress.env('openSearchUrl')}/${sample_alias}/_stats/translog`, @@ -167,7 +167,7 @@ describe('Aliases', () => { ); let num = response_obj['_all']['total']['translog']['uncommitted_operations']; - expect(num).to.equal(1); + expect(num).not.equal(0); }); cy.get('[data-test-subj="moreAction"] button') diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/data_streams.js b/cypress/integration/plugins/index-management-dashboards-plugin/data_streams.js index cf99f2c06..550846bc2 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/data_streams.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/data_streams.js @@ -100,7 +100,7 @@ describe('Data stream', () => { body: { '@timestamp': 123123123 }, }); - // confirm uncommitted_operations is 1 after indexing doc + // confirm uncommitted_operations is not 0 after indexing doc cy.request({ method: 'GET', url: `${Cypress.env('openSearchUrl')}/ds-/_stats/translog`, @@ -110,7 +110,7 @@ describe('Data stream', () => { ); let num = response_obj['_all']['total']['translog']['uncommitted_operations']; - expect(num).to.equal(1); + expect(num).not.equal(0); }); cy.get('[data-test-subj="moreAction"]').click(); diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js b/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js index b0de7ef1c..80b6f17ee 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js @@ -618,7 +618,7 @@ describe('Indices', () => { body: { test: 'test' }, }); - // confirm uncommitted_operations is 1 after indexing doc + // confirm uncommitted_operations is not 0 after indexing doc cy.request({ method: 'GET', url: `${Cypress.env('openSearchUrl')}/${SAMPLE_INDEX}/_stats/translog`, @@ -628,7 +628,7 @@ describe('Indices', () => { ); let num = response_obj['_all']['total']['translog']['uncommitted_operations']; - expect(num).to.equal(1); + expect(num).not.equal(0); }); // Select an index @@ -678,7 +678,7 @@ describe('Indices', () => { body: { test: 'test' }, }); - // confirm uncommitted_operations is 1 after indexing doc + // confirm uncommitted_operations is not 0 after indexing doc cy.request({ method: 'GET', url: `${Cypress.env('openSearchUrl')}/${SAMPLE_INDEX}/_stats/translog`, @@ -688,7 +688,7 @@ describe('Indices', () => { ); let num = response_obj['_all']['total']['translog']['uncommitted_operations']; - expect(num).to.equal(1); + expect(num).not.equal(0); }); cy.get('[data-test-subj="moreAction"]').click();