Skip to content

Commit 6e269da

Browse files
authored
Fix Flaky Tests (#1786)
Signed-off-by: Suchit Sahoo <[email protected]>
1 parent f763fa9 commit 6e269da

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/data.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ describe('table visualization data', () => {
192192
timestamp: '2022-08-30T23:20:41.280Z',
193193
username: 'missing',
194194
});
195+
cy.forceMergeSegments();
195196
cy.reload();
196197
cy.tbGetTableDataFromVisualization().then((data) => {
197198
expect(data).to.deep.eq(['10,001']);

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/embed.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ describe('table visualization in embedded mode', () => {
6363
cy.deleteIndexPattern(TABLE_INDEX_PATTERN);
6464
cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA);
6565
cy.importSavedObjects(TABLE_PATH_SO_DATA);
66+
cy.forceMergeSegments();
6667
// Load table visualization
6768
cy.visit(`${BASE_PATH}/app/visualize`);
6869
cy.get('input[type="search"]').type(`${TABLE_BASIC_VIS_TITLE}{enter}`);

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/options.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('Table visualization options', () => {
2525
cy.deleteIndexPattern(TABLE_INDEX_PATTERN);
2626
cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA);
2727
cy.importSavedObjects(TABLE_PATH_SO_DATA);
28+
cy.forceMergeSegments();
2829
// Load table visualization
2930
cy.visit(`${BASE_PATH}/app/visualize`);
3031
cy.get('input[type="search"]').type(`${TABLE_BASIC_VIS_TITLE}{enter}`);

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/split.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe.skip('Split table', () => {
6868
cy.deleteIndexPattern(TABLE_INDEX_PATTERN);
6969
cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA);
7070
cy.importSavedObjects(TABLE_PATH_SO_DATA);
71+
cy.forceMergeSegments();
7172
// Load table visualization
7273
cy.visit(`${BASE_PATH}/app/visualize`);
7374
cy.get('input[type="search"]').type(`${TABLE_BASIC_VIS_TITLE}{enter}`);

0 commit comments

Comments
 (0)