diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js index f0fdd1ffd..29bcf6476 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js @@ -146,7 +146,7 @@ describe("Aliases", () => { }).then((response) => { let response_obj = JSON.parse(response["allRequestResponses"][0]["Response Body"]); let num = response_obj["_all"]["total"]["translog"]["uncommitted_operations"]; - expect(num).to.equal(1); + expect(num).not.equal(0); }); // Flush btn should be disabled if no items selected 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 d2d93fc41..c4bd202d7 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/data_streams.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/data_streams.js @@ -99,7 +99,7 @@ describe("Data stream", () => { }).then((response) => { let response_obj = JSON.parse(response["allRequestResponses"][0]["Response Body"]); 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 0989b017a..d490afb42 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js @@ -550,7 +550,7 @@ describe("Indexes", () => { }).then((response) => { let response_obj = JSON.parse(response["allRequestResponses"][0]["Response Body"]); let num = response_obj["_all"]["total"]["translog"]["uncommitted_operations"]; - expect(num).to.equal(1); + expect(num).not.equal(0); }); // Select an index @@ -601,7 +601,7 @@ describe("Indexes", () => { }).then((response) => { let response_obj = JSON.parse(response["allRequestResponses"][0]["Response Body"]); 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();