Skip to content

Commit

Permalink
Merge branch '2.x' into fix/no-auth-data-source-missing-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglam authored Nov 4, 2024
2 parents 3e8d5c2 + d528112 commit 855f31f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
SERVICE_NAME,
setTimeFilter,
delayTime,
TIMEOUT_DELAY
TIMEOUT_DELAY,
} from '../../../utils/constants';

describe('Testing services table', () => {
Expand All @@ -27,10 +27,10 @@ describe('Testing services table', () => {
.first()
.focus()
.type(`${SERVICE_NAME}{enter}`);
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]', {
timeout: TIMEOUT_DELAY,
}).click();
cy.contains(' (1)').should('exist');
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]', {
timeout: TIMEOUT_DELAY,
}).click();
cy.contains(' (1)').should('exist');
});

it('Opens service flyout', () => {
Expand Down
5 changes: 2 additions & 3 deletions cypress/utils/plugins/observability-dashboards/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const setTimeFilter = (setEndTime = false, refresh = true) => {
timeout: TIMEOUT_DELAY,
}).type('{selectall}' + endTime, { force: true });
}
if (refresh){
if (refresh) {
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]', {
timeout: TIMEOUT_DELAY,
}).click();
Expand Down Expand Up @@ -175,8 +175,7 @@ export const querySearch = (query, rangeSelected) => {
cy.get(rangeSelected).click();
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]', {
timeout: TIMEOUT_DELAY,
})
.click();
}).click();
};

export const landOnEventHome = () => {
Expand Down

0 comments on commit 855f31f

Please sign in to comment.