Skip to content

Commit

Permalink
Fix: flaky tests for v2.15 (#1419)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhat Sharma <ptsharma@amazon.com>
Co-authored-by: Prabhat Sharma <ptsharma@amazon.com>
Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
3 people authored Jun 19, 2024
1 parent 6530b0f commit eb745f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Rollups', () => {
cy.visit(`${BASE_PATH}/app/home#/tutorial_directory/sampleData`);

// Click on "Sample data" tab
cy.contains('Sample data').click({ force: true });
cy.contains('Sample data', { timeout: 60000 }).click({ force: true });
// Load sample eCommerce data
cy.get(`button[data-test-subj="addSampleDataSetecommerce"]`).click({
force: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ describe('Transforms', () => {
.should('not.be.disabled')
.click();

// Extra wait to reduce the possibility of version conflict exception
cy.wait(2000);

cy.wait('@stopTransform');
cy.wait('@getTransform');

Expand Down

0 comments on commit eb745f1

Please sign in to comment.