Skip to content

Commit

Permalink
cypress: modify test to check for inequality (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
r1walz committed May 21, 2024
1 parent 06af0a4 commit 2bcb2a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2bcb2a5

Please sign in to comment.