Skip to content

Commit

Permalink
fix es lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>
  • Loading branch information
kavithacm committed Jan 11, 2024
1 parent ea63152 commit 4d11381
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Metrics Analytics', () => {
.contains(PPL_METRICS_NAMES[1])
.trigger('mouseover')
.click();
cy.wait(50);
cy.wait(delay/2);
cy.get('[data-test-subj="metricsListItems_selectedMetrics"]')
.contains(PPL_METRICS_NAMES[0])
.should('exist');
Expand All @@ -115,7 +115,7 @@ describe('Metrics Analytics', () => {
.contains(PPL_METRICS_NAMES[1])
.trigger('mouseover')
.click();
cy.wait(50);
cy.wait(delay/2);
cy.get('[data-test-subj="metricsListItems_availableMetrics"]')
.contains(PPL_METRICS_NAMES[0])
.trigger('mouseover')
Expand All @@ -142,7 +142,6 @@ describe('Metrics Analytics', () => {
.contains(PPL_METRICS_NAMES[1])
.trigger('mouseover')
.click();
cy.wait(delay);
cy.get('h5')

Check warning on line 145 in .cypress/integration/metrics_analytics_test/metrics_analytics.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
.contains(PPL_METRICS_NAMES[0])
.trigger('mousedown', { which: 1, force: true })
Expand All @@ -153,7 +152,6 @@ describe('Metrics Analytics', () => {
.eq(1)
.invoke('attr', 'style')
.should('match', new RegExp('(.*)transform: translate((.*)10px)(.*)'));
cy.wait(delay);
});

it('Change date filter of the Metrics home page', () => {
Expand All @@ -165,7 +163,6 @@ describe('Metrics Analytics', () => {
cy.get('.euiSuperDatePicker__prettyFormat[data-test-subj="superDatePickerShowDatesButton"]')
.contains('This year')
.should('exist');
cy.wait(delay);
});

it('Saves metrics to an existing panel', () => {
Expand Down Expand Up @@ -218,7 +215,6 @@ const createCustomMetric = ({ testMetricIndex }) => {
delay: 50,
});
cy.get('.euiButton__text').contains('Refresh').trigger('mouseover').click();
cy.wait(delay);
suppressResizeObserverIssue();
cy.get('button[id="main-content-vis"]').contains('Visualizations').trigger('mouseover').click();
cy.wait(delay * 2);
Expand All @@ -229,11 +225,10 @@ const createCustomMetric = ({ testMetricIndex }) => {
.focus()
.type(PPL_METRICS_NAMES[metricIndex], { force: true });
cy.get('[data-test-subj="eventExplorer__metricSaveName"]').click({ force: true });

Check warning on line 227 in .cypress/integration/metrics_analytics_test/metrics_analytics.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
cy.wait(1000);
cy.wait(delay * 10);
cy.get('[data-test-subj="eventExplorer__querySaveConfirm"]', {
timeout: COMMAND_TIMEOUT_LONG,
}).click();
cy.wait(delay);
cy.get('.euiToastHeader__title').contains('successfully').should('exist');
};

Expand Down

0 comments on commit 4d11381

Please sign in to comment.