From d528112d702ad9f8e045ef27e045d9f814ccfacb Mon Sep 17 00:00:00 2001 From: Anan Zhuang Date: Fri, 1 Nov 2024 10:30:22 -0700 Subject: [PATCH] fix lint issue in 2.x (#1621) Signed-off-by: Anan --- .../2_trace_analytics_services.spec.js | 10 +++++----- .../plugins/observability-dashboards/constants.js | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cypress/integration/plugins/observability-dashboards/2_trace_analytics_services.spec.js b/cypress/integration/plugins/observability-dashboards/2_trace_analytics_services.spec.js index 99c6c5c8e..80bae211c 100644 --- a/cypress/integration/plugins/observability-dashboards/2_trace_analytics_services.spec.js +++ b/cypress/integration/plugins/observability-dashboards/2_trace_analytics_services.spec.js @@ -9,7 +9,7 @@ import { SERVICE_NAME, setTimeFilter, delayTime, - TIMEOUT_DELAY + TIMEOUT_DELAY, } from '../../../utils/constants'; describe('Testing services table', () => { @@ -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', () => { diff --git a/cypress/utils/plugins/observability-dashboards/constants.js b/cypress/utils/plugins/observability-dashboards/constants.js index 380a28790..fd2af0177 100644 --- a/cypress/utils/plugins/observability-dashboards/constants.js +++ b/cypress/utils/plugins/observability-dashboards/constants.js @@ -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(); @@ -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 = () => {