Skip to content

Commit

Permalink
fix flaky test of query enhancment (#1647) (#1658)
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
(cherry picked from commit 53f3bc5)

Co-authored-by: Hailong Cui <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and Hailong-am authored Nov 22, 2024
1 parent 64f1694 commit 942e3ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ const testFixtureHandler = new TestFixtureHandler(
Cypress.env('openSearchUrl')
);

const indexSet = [
'logstash-2015.09.22',
'logstash-2015.09.21',
'logstash-2015.09.20',
];

describe('query enhancement queries', { scrollBehavior: false }, () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
Expand Down Expand Up @@ -108,7 +102,7 @@ describe('query enhancement queries', { scrollBehavior: false }, () => {
`source = timestamp-*`
);
cy.waitForSearch();
cy.getElementByTestId('queryResultCompleteMsg').click();
cy.getElementByTestId(`queryResultCompleteMsg`).should('be.visible');
cy.get('[class="euiText euiText--small"]').then((text) => cy.log(text));
cy.verifyHitCount(4);

Expand Down
4 changes: 1 addition & 3 deletions cypress/utils/dashboards/query_enhancement/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ Cypress.Commands.add('setSingleLineQueryEditor', (value, submit = true) => {
}
});

Cypress.Commands.add('setQueryLanguage', (value, submit = true) => {
const opts = { log: false };

Cypress.Commands.add('setQueryLanguage', (value) => {
Cypress.log({
name: 'setQueryLanguage',
displayName: 'set language',
Expand Down

0 comments on commit 942e3ef

Please sign in to comment.