From 30626d6daa8f5fe3226b048a79e1e10e78dde5a9 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Wed, 3 Jan 2024 13:49:44 -0800 Subject: [PATCH] Fix some lint Signed-off-by: Ryan Liang --- .../datasources_basic_ui.spec.js | 16 +++++++++++----- .cypress/utils/constants.js | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.cypress/integration/datasources_test/datasources_basic_ui.spec.js b/.cypress/integration/datasources_test/datasources_basic_ui.spec.js index 871b7025ac..f8e70642f5 100644 --- a/.cypress/integration/datasources_test/datasources_basic_ui.spec.js +++ b/.cypress/integration/datasources_test/datasources_basic_ui.spec.js @@ -11,16 +11,16 @@ import { const manageDataSourcesTag = 'button[data-test-subj="manage"]'; const newDataSourcesTag = 'button[data-test-subj="new"]'; -const createS3Button = '[data-test-subj="datasource_card_s3glue"]' +const createS3Button = '[data-test-subj="datasource_card_s3glue"]'; const createPrometheusButton = '[data-test-subj="datasource_card_prometheus"]'; const visitDatasourcesHomePage = () => { cy.visit(FONTEND_BASE_PATH + DATASOURCES_API_PREFIX); -} +}; const visitDatasourcesCreationPage = () => { cy.visit(FONTEND_BASE_PATH + DATASOURCES_PATH.DATASOURCES_CREATION_BASE); -} +}; describe('Integration tests for datasources plugin', () => { it('Navigates to datasources plugin and expects the correct header', () => { @@ -51,7 +51,10 @@ describe('Integration tests for datasources plugin', () => { visitDatasourcesCreationPage(); cy.get(createS3Button).should('be.visible').click(); - cy.url().should('include', DATASOURCES_PATH.DATASOURCES_CONFIG_BASE + '/AmazonS3AWSGlue') + cy.url().should( + 'include', + DATASOURCES_PATH.DATASOURCES_CONFIG_BASE + '/AmazonS3AWSGlue' + ); cy.get('h1.euiTitle.euiTitle--medium') .should('be.visible') @@ -62,7 +65,10 @@ describe('Integration tests for datasources plugin', () => { visitDatasourcesCreationPage(); cy.get(createPrometheusButton).should('be.visible').click(); - cy.url().should('include', DATASOURCES_PATH.DATASOURCES_CONFIG_BASE + '/Prometheus') + cy.url().should( + 'include', + DATASOURCES_PATH.DATASOURCES_CONFIG_BASE + '/Prometheus' + ); cy.get('h4.euiTitle.euiTitle--medium') .should('be.visible') diff --git a/.cypress/utils/constants.js b/.cypress/utils/constants.js index 00455bf966..706061baff 100644 --- a/.cypress/utils/constants.js +++ b/.cypress/utils/constants.js @@ -15,7 +15,7 @@ export const DATASOURCES_API_PREFIX = '/app/datasources'; export const DATASOURCES_PATH = { DATASOURCES_CREATION_BASE: `${DATASOURCES_API_PREFIX}#/new`, DATASOURCES_CONFIG_BASE: `${DATASOURCES_API_PREFIX}#/configure` -} +}; // trace analytics export const TRACE_ID = '8832ed6abbb2a83516461960c89af49d';