Skip to content

Commit

Permalink
fix error on github ci
Browse files Browse the repository at this point in the history
Signed-off-by: Qingyang(Abby) Hu <[email protected]>
  • Loading branch information
abbyhu2000 committed Oct 4, 2023
1 parent 3e3f279 commit 68be7fd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,17 @@ describe('discover app', { scrollBehavior: false }, () => {
cy.getElementByTestId('fieldToggle-ip').click({ force: true });

cy.getElementByTestId('dataGridHeaderCell-ip').should('be.visible');
cy.getElementByTestId('dataGridHeaderCellActionButton-ip').click();
cy.getElementByTestId('dataGridHeaderCell-ip')
.getElementByTestId('dataGridHeaderCellActionButton-ip')
.click({ force: true });

// Sort from A-Z
cy.contains('button', 'A-Z').click();

// Move the column to the left
cy.getElementByTestId('dataGridHeaderCellActionButton-ip').click();
cy.getElementByTestId('dataGridHeaderCell-ip')
.getElementByTestId('dataGridHeaderCellActionButton-ip')
.click({ force: true });

cy.contains('button', 'Move left').click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ describe('doc link in discover', () => {
'cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/logstash/logstash.json.txt'
);

testFixtureHandler.importJSONMapping(
'cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/discover/discover.mappings.json.txt'
);

testFixtureHandler.importJSONDoc(
'cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/discover/discover.json.txt'
);

cy.setAdvancedSetting({
defaultIndex: 'logstash-*',
});
Expand Down Expand Up @@ -90,6 +98,8 @@ describe('doc link in discover', () => {
.find(`[data-test-subj="addInclusiveFilterButton"]`)
.click();

cy.wait(100);

// Since the value of referer is null, the filter for value option will add a non-existing filter
cy.get('[data-test-subj~="filter-key-referer"]').should('be.visible');
cy.get('[data-test-subj~="filter-negated"]').should('be.visible');
Expand Down

0 comments on commit 68be7fd

Please sign in to comment.