diff --git a/.cypress/integration/datasources_test/datasources.spec.js b/.cypress/integration/datasources_test/datasources.spec.js deleted file mode 100644 index fdfe21b285..0000000000 --- a/.cypress/integration/datasources_test/datasources.spec.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -/// - - - const moveToDatasourcesHome = () => { - cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources`); - }; - - const moveToNewDatasourcesPage = () => { - cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources#/new`); - }; - - const moveToCreatePrometheusDatasourcePage = () => { - cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources#/configure/PROMETHEUS`); - }; - - describe('Integration tests for datasources plugin', () => { - const testPrometheusSuffix = (Math.random() + 1).toString(36).substring(7); -const testPrometheusInstance = `Prometheus_${testPrometheusSuffix}`; -const testS3Suffix = (Math.random() + 1).toString(36).substring(7); -const testS3Instance = `S3_${testS3Suffix}`; - it('Navigates to datasources plugin and expects the correct header', () => { - moveToDatasourcesHome(); - cy.get('[data-test-subj="dataconnections-header"]').should('exist'); - }); - - it('Tests navigation between tabs and goes to Prometheus creation flow', () => { - moveToDatasourcesHome(); - cy.get('[data-test-subj="new"]').click(); - cy.url().should('include', '/new') - cy.get('[data-test-subj="datasource_card_prometheus"]').click(); - cy.url().should('include', '/configure/PROMETHEUS'); - }); - -}); - - - diff --git a/.cypress/integration/datasources_test/datasources_basic_ui.spec.js b/.cypress/integration/datasources_test/datasources_basic_ui.spec.js new file mode 100644 index 0000000000..4f9259ef5e --- /dev/null +++ b/.cypress/integration/datasources_test/datasources_basic_ui.spec.js @@ -0,0 +1,67 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { FONTEND_BASE_PATH, DATASOURCES_API_PREFIX, DATASOURCES_PATH } from '../../utils/constants'; + +const MANAGE_DATASOURCES_TAG = 'button[data-test-subj="manage"]'; +const NEW_DATASOURCES_TAG = 'button[data-test-subj="new"]'; +const CREATE_S3_BUTTON = '[data-test-subj="datasource_card_s3glue"]'; +const CREATE_PROMETHEUS_BUTTON = '[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', () => { + visitDatasourcesHomePage(); + cy.get('[data-test-subj="dataconnections-header"]').should('exist'); + }); + + it('Tests navigation between tabs', () => { + visitDatasourcesHomePage(); + + cy.get(MANAGE_DATASOURCES_TAG) + .should('have.class', 'euiTab-isSelected') + .and('have.attr', 'aria-selected', 'true'); + cy.get(MANAGE_DATASOURCES_TAG).click(); + cy.url().should('include', '/manage'); + + cy.get(NEW_DATASOURCES_TAG).click(); + cy.get(NEW_DATASOURCES_TAG) + .should('have.class', 'euiTab-isSelected') + .and('have.attr', 'aria-selected', 'true'); + cy.url().should('include', '/new'); + + cy.get(CREATE_S3_BUTTON).should('be.visible'); + cy.get(CREATE_PROMETHEUS_BUTTON).should('be.visible'); + }); + + it('Tests navigation of S3 datasources creation page with hash', () => { + visitDatasourcesCreationPage(); + + cy.get(CREATE_S3_BUTTON).should('be.visible').click(); + cy.url().should('include', DATASOURCES_PATH.DATASOURCES_CONFIG_BASE + '/AmazonS3AWSGlue'); + + cy.get('h1.euiTitle.euiTitle--medium') + .should('be.visible') + .and('contain', 'Configure Amazon S3 data source'); + }); + + it('Tests navigation of Prometheus datasources creation page with hash', () => { + visitDatasourcesCreationPage(); + + cy.get(CREATE_PROMETHEUS_BUTTON).should('be.visible').click(); + cy.url().should('include', DATASOURCES_PATH.DATASOURCES_CONFIG_BASE + '/Prometheus'); + + cy.get('h4.euiTitle.euiTitle--medium') + .should('be.visible') + .and('contain', 'Configure Prometheus data source'); + }); +}); diff --git a/.cypress/utils/constants.js b/.cypress/utils/constants.js index af655fbe3e..706061baff 100644 --- a/.cypress/utils/constants.js +++ b/.cypress/utils/constants.js @@ -6,6 +6,17 @@ export const delay = 1500; export const COMMAND_TIMEOUT_LONG = 10000; +//BASE Constants +export const BACKEND_BASE_PATH = Cypress.env('opensearch'); +export const FONTEND_BASE_PATH = Cypress.env('opensearchDashboards'); + +//Datasources API Constants +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'; export const SPAN_ID = 'a673bc074b438374'; diff --git a/.github/workflows/integration-tests-workflow.yml b/.github/workflows/integration-tests-workflow.yml index 2ee8a85ecb..d1179a6e2d 100644 --- a/.github/workflows/integration-tests-workflow.yml +++ b/.github/workflows/integration-tests-workflow.yml @@ -109,6 +109,15 @@ jobs: node-version: ${{ steps.versions_step.outputs.node_version }} registry-url: 'https://registry.npmjs.org' + - name: Configure OpenSearch Dashboards + run: | + rm -rf ./config/opensearch_dashboards.yml + cat << 'EOT' > ./config/opensearch_dashboards.yml + server.host: "0.0.0.0" + home.disableWelcomeScreen: true + EOT + working-directory: OpenSearch-Dashboards + - name: Install correct yarn version for OpenSearch Dashboards run: | npm uninstall -g yarn diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f26802c597..22d20d68da 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -48,25 +48,32 @@ jobs: working-directory: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} run: yarn osd bootstrap - - name: Get list of changed files - id: files + - name: Get list of changed files using GitHub Action + uses: lots0logs/gh-action-get-changed-files@2.2.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Check Changes of Files run: | - BASE_SHA="${{ github.event.pull_request.base.sha }}" - HEAD_SHA="${{ github.event.pull_request.head.sha }}" - git fetch origin $BASE_SHA - git diff --name-only $BASE_SHA...$HEAD_SHA > changed_files.txt - CHANGED_FILES=$(cat changed_files.txt | grep -E '\.(js|ts|tsx)$' || true) - echo "::set-output name=changed::${CHANGED_FILES}" - working-directory: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} + echo "FILES_MODIFIED=$(cat ${HOME}/files_modified.json)" + echo "FILES_ADDED=$(cat ${HOME}/files_added.json)" + echo "FILES_RENAMED=$(cat ${HOME}/files_renamed.json)" + echo "FILES_DELETED=$(cat ${HOME}/files_deleted.json)" - name: Lint Changed Files run: | - CHANGED_FILES="${{ steps.files.outputs.changed }}" + jq -r '.[]' ${HOME}/files_modified.json ${HOME}/files_added.json | sort | uniq > /tmp/changed_files.txt + CHANGED_FILES=$(cat /tmp/changed_files.txt) + echo "These are the changed files: $CHANGED_FILES" if [[ -n "$CHANGED_FILES" ]]; then echo "Linting changed files..." - IFS=$'\n' read -r -a FILES_TO_LINT <<< "$CHANGED_FILES" - yarn lint "${FILES_TO_LINT[@]}" + while IFS= read -r file; do + if [[ $file == *.js || $file == *.ts || $file == *.tsx ]]; then + echo "linting file $file" + yarn lint "$file" + fi + done < /tmp/changed_files.txt else echo "No matched files to lint." fi - working-directory: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} + working-directory: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} diff --git a/cypress.config.js b/cypress.config.js index dff98e5eb8..84ad089460 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -18,14 +18,12 @@ module.exports = defineConfig({ env: { opensearch: 'localhost:9200', opensearchDashboards: 'localhost:5601', - security_enabled: true, + security_enabled: false, }, 'cypress-watch-and-reload': { watch: ['common/**', 'public/**', 'server/**'], }, e2e: { - // We've imported your old cypress plugins here. - // You may want to clean this up later by importing these. setupNodeEvents(on, config) { return require('./.cypress/plugins/index.js')(on, config); }, diff --git a/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap b/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap index 3e8c7b716a..d16f1b4662 100644 --- a/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap +++ b/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap @@ -150,7 +150,7 @@ exports[`Live tail button starts live tail with 5s interval 1`] = ` size="m" type="stop" > - - + > + + + - - + > + + + - - + > + + + - - + > + + + @@ -746,7 +758,7 @@ exports[`Explorer Search component renders basic component 1`] = ` size="m" type="refresh" > - - + > + + + - - + > + + + - - + > + + + @@ -294,7 +298,7 @@ exports[`Panels Table Component renders empty panel table container 1`] = ` size="m" type="arrowDown" > - - + > + + + - - + > + + + - - + > + + + - - + > + + + - - + > + + + - - + > + + + @@ -3739,7 +3759,7 @@ exports[`Panels View Component renders panel view container without visualizatio size="m" type="refresh" > - - + > + + + - - + > + + + - - + > + + + - - + > + + + diff --git a/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap b/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap index 0e37e1e4a2..c20ca8ae6a 100644 --- a/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap @@ -133,7 +133,11 @@ exports[`Visualization Flyout Component renders add visualization Flyout 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
+ > + +
+ > + +
+ > + +
+ > + +
- - + > + + + diff --git a/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap b/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap index 6fb23b7abb..5b35615a54 100644 --- a/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap +++ b/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap @@ -298,7 +298,7 @@ exports[`Connection Details test Renders connection details for s3 datasource 1` size="m" type="iInCircle" > - - + > + + + + > + + + > + +
+ > + + @@ -603,7 +615,11 @@ exports[`Data Connection Page test Renders S3 data connection page with data 1`] viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
+ > + +
+ > + +
- - + > + + + + > + +
@@ -150,7 +154,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -199,7 +207,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
@@ -329,7 +341,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + + > + + + > + +
@@ -453,7 +477,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + + > + + + > + + @@ -577,7 +613,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + + > + + + > + + @@ -701,7 +749,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + + > + + + > + + @@ -805,7 +865,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -840,7 +904,11 @@ exports[`Manage Data Connections Table test Renders manage data connections tabl viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    + > + + diff --git a/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap b/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap index a4b27f4544..5fd77b87ba 100644 --- a/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap +++ b/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap @@ -36,7 +36,7 @@ exports[`No access test Renders no access view of data source 1`] = ` size="xxl" type="alert" > - - + > + + + - - + > + + + @@ -243,7 +247,7 @@ exports[`Added Integration View Test Renders added integration view using dummy size="m" type="trash" > - - + > + + + @@ -572,7 +580,7 @@ exports[`Added Integration View Test Renders added integration view using dummy size="m" type="search" > - - + > + + + @@ -796,7 +808,7 @@ exports[`Added Integration View Test Renders added integration view using dummy size="m" type="arrowDown" > - - + > + + + + > + +
    + > + + @@ -389,7 +397,11 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    + > + + @@ -648,7 +664,11 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    + > + + @@ -907,7 +931,11 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    + > + + @@ -1154,7 +1186,11 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    + > + + @@ -1437,7 +1477,7 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i size="m" type="cross" > - - + > + + + @@ -1569,7 +1613,7 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i size="s" type="popout" > - - + > + + + - - + > + + + @@ -487,7 +491,7 @@ exports[`Added Integration Table View Test Renders added integration table view size="m" type="arrowDown" > - - + > + + + - - + > + + +
    @@ -1191,7 +1203,7 @@ exports[`Added Integration Table View Test Renders added integration table view size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -1430,7 +1450,7 @@ exports[`Added Integration Table View Test Renders added integration table view size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap index 9f6372b915..6f47d925a0 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap @@ -125,7 +125,7 @@ exports[`Available Integration Card View Test Renders nginx integration card vie size="m" type="search" > - - + > + + + @@ -269,7 +273,7 @@ exports[`Available Integration Card View Test Renders nginx integration card vie size="m" type="list" > - - + > + + + - - + > + + + - - + > + + + @@ -471,7 +475,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v size="m" type="list" > - - + > + + + - - + > + + + - - + > + + + - - + > + + + @@ -1446,7 +1466,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/integrations/components/__tests__/__snapshots__/integration_details.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/integration_details.test.tsx.snap index 5274b335b7..18d1867951 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/integration_details.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/integration_details.test.tsx.snap @@ -120,7 +120,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v size="s" type="popout" > - - + > + + + diff --git a/public/components/integrations/components/__tests__/__snapshots__/integration_fields.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/integration_fields.test.tsx.snap index 77fb9d7a07..9617512f0f 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/integration_fields.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/integration_fields.test.tsx.snap @@ -160,7 +160,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v size="m" type="search" > - - + > + + + diff --git a/public/components/integrations/components/__tests__/__snapshots__/integration_header.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/integration_header.test.tsx.snap index 9aa43c4964..41591c2408 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/integration_header.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/integration_header.test.tsx.snap @@ -67,7 +67,7 @@ exports[`Integration Header Test Renders integration header as expected 1`] = ` size="s" type="popout" > - - + > + + + diff --git a/public/components/integrations/components/__tests__/__snapshots__/setup_integration.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/setup_integration.test.tsx.snap index ac06da656e..8f555a0d9b 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/setup_integration.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/setup_integration.test.tsx.snap @@ -288,7 +288,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] = size="m" type="arrowDown" > - - + > + + + @@ -590,7 +594,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] = className="euiFormControlLayoutClearButton__icon" type="cross" > - - + > + + + @@ -641,7 +649,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] = size="m" type="arrowDown" > - - + > + + + @@ -751,7 +763,11 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] = viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -781,7 +797,11 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] = viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -868,7 +888,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] = size="m" type="cross" > - - + > + + + - - + > + + + - - + > + + + diff --git a/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap index 898fc9dfd0..a22e4729ce 100644 --- a/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap +++ b/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap @@ -198,7 +198,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = ` size="m" type="search" > - - + > + + + @@ -293,7 +297,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = ` size="m" type="arrowRight" > - - + > + + + - - + > + + + - - + > + + + - - + > + + + diff --git a/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap b/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap index cb3497bdcf..9c64eae1cd 100644 --- a/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap +++ b/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap @@ -253,7 +253,7 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`] size="m" type="arrowDown" > - - + > + + + @@ -563,7 +567,7 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`] size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -753,7 +765,7 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`] size="m" type="refresh" > - - + > + + + - - + > + + + - - + > + + + spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    @@ -358,7 +362,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    @@ -841,7 +849,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
      spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    @@ -973,7 +989,11 @@ exports[` spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    @@ -1009,7 +1029,11 @@ exports[` spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + diff --git a/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap b/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap index b2bc5ba057..a55b86bc52 100644 --- a/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap +++ b/public/components/notebooks/components/__tests__/__snapshots__/notebook.test.tsx.snap @@ -48,7 +48,11 @@ exports[` spec Renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -129,7 +133,11 @@ exports[` spec Renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -224,7 +232,11 @@ exports[` spec Renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec Renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec renders the markdown component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    @@ -137,7 +141,11 @@ exports[` spec renders the visualization component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -238,7 +250,11 @@ exports[` spec renders the visualization component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -251,7 +267,11 @@ exports[` spec renders the visualization component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    diff --git a/public/components/notebooks/components/paragraph_components/__tests__/__snapshots__/paragraphs.test.tsx.snap b/public/components/notebooks/components/paragraph_components/__tests__/__snapshots__/paragraphs.test.tsx.snap index c28f96d28d..df055e89ca 100644 --- a/public/components/notebooks/components/paragraph_components/__tests__/__snapshots__/paragraphs.test.tsx.snap +++ b/public/components/notebooks/components/paragraph_components/__tests__/__snapshots__/paragraphs.test.tsx.snap @@ -29,7 +29,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -56,7 +60,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -119,7 +127,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -150,7 +162,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -187,7 +207,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + + @@ -249,7 +277,11 @@ exports[` spec renders the component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    - - + > + + + - - + > + + + @@ -451,7 +459,7 @@ exports[`Search bar components renders search bar 1`] = ` size="m" type="search" > - - + > + + + @@ -931,7 +943,7 @@ exports[`Search bar components renders search bar 1`] = ` size="m" type="refresh" > - - + > + + + - - + > + + + diff --git a/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filter_edit_popover.test.tsx.snap b/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filter_edit_popover.test.tsx.snap index 7fde9a70a6..8dc64c168d 100644 --- a/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filter_edit_popover.test.tsx.snap +++ b/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filter_edit_popover.test.tsx.snap @@ -290,7 +290,7 @@ exports[`Filter popover component renders filter popover 1`] = ` size="m" type="arrowDown" > - - + > + + + @@ -554,7 +558,7 @@ exports[`Filter popover component renders filter popover 1`] = ` size="m" type="arrowDown" > - - + > + + + diff --git a/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filters.test.tsx.snap b/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filters.test.tsx.snap index 3d483d4dd2..e886fa6400 100644 --- a/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filters.test.tsx.snap +++ b/public/components/trace_analytics/components/common/filters/__tests__/__snapshots__/filters.test.tsx.snap @@ -80,7 +80,7 @@ exports[`Filter component renders filters 1`] = ` size="m" type="filter" > - - + > + + + diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap index f828066af8..1fff402475 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap @@ -1405,7 +1405,7 @@ exports[`Dashboard component renders empty dashboard 1`] = ` size="m" type="arrowDown" > - - + > + + + - - + > + + + - - + > + + +
    @@ -1241,7 +1249,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + + @@ -1291,7 +1303,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="m" type="sortDown" > - - + > + + + @@ -1391,7 +1407,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1489,7 +1509,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1597,7 +1621,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1706,7 +1734,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1828,7 +1860,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1959,7 +1995,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + + @@ -2397,7 +2437,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2506,7 +2550,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2615,7 +2663,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2734,7 +2786,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2916,7 +2972,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -3155,7 +3219,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/latency_trend_cell.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/latency_trend_cell.test.tsx.snap index 4b415df6f9..6c4844fa12 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/latency_trend_cell.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/latency_trend_cell.test.tsx.snap @@ -142,7 +142,7 @@ exports[`Latency trend cell component renders latency trend cell 1`] = ` size="m" type="magnifyWithPlus" > - - + > + + + diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/mode_picker.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/mode_picker.test.tsx.snap index 469f17277f..95690a4bae 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/mode_picker.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/mode_picker.test.tsx.snap @@ -86,7 +86,7 @@ exports[`Mode picker component renders mode picker 1`] = ` size="m" type="arrowDown" > - - + > + + + - - + > + + + + > + +
    @@ -674,7 +686,7 @@ exports[`Mode picker component renders mode picker 2`] = ` size="s" type="search" > - - + > + + +
    diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_error_rates_table.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_error_rates_table.test.tsx.snap index 71733fa84d..dee301c004 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_error_rates_table.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_error_rates_table.test.tsx.snap @@ -805,7 +805,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="arrowDown" > - - + > + + + - - + > + + +
    @@ -1056,7 +1064,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1154,7 +1166,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1262,7 +1278,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1384,7 +1404,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1508,7 +1532,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1617,7 +1645,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1736,7 +1768,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="questionInCircle" > - - + > + + +
    @@ -1914,7 +1950,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -2153,7 +2197,7 @@ exports[`Error Rates Table component renders top error rates table with data 1`] size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_latency_table.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_latency_table.test.tsx.snap index d0279c1869..edcc7059d9 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_latency_table.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/top_latency_table.test.tsx.snap @@ -1164,7 +1164,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + +
    @@ -1421,7 +1429,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + + @@ -1471,7 +1483,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="m" type="sortDown" > - - + > + + + @@ -1571,7 +1587,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1680,7 +1700,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1789,7 +1813,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -1911,7 +1939,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2042,7 +2074,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + + @@ -2480,7 +2516,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2589,7 +2629,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2708,7 +2752,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="questionInCircle" > - - + > + + +
    @@ -2886,7 +2934,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -3125,7 +3181,7 @@ exports[`Latency Table component renders top error rates table with data 1`] = ` size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap index 042830c076..b4e2ead80a 100644 --- a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap +++ b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap @@ -282,7 +282,7 @@ exports[`Services component renders empty services page 1`] = ` size="m" type="arrowDown" > - - + > + + + - - + > + + + @@ -922,7 +930,7 @@ exports[`Services component renders empty services page 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -1076,7 +1092,7 @@ exports[`Services component renders empty services page 1`] = ` size="m" type="refresh" > - - + > + + + - - + > + + + @@ -1875,7 +1899,7 @@ exports[`Services component renders empty services page 1`] = ` size="m" type="search" > - - + > + + + @@ -2042,7 +2070,7 @@ exports[`Services component renders empty services page 1`] = ` size="m" type="arrowRight" > - - + > + + + - - + > + + + - - + > + + + @@ -3065,7 +3073,7 @@ exports[`Services table component renders services table 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -3304,7 +3320,7 @@ exports[`Services table component renders services table 1`] = ` size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap index db4ecbdadf..9024b9fa83 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap @@ -318,7 +318,7 @@ exports[`Service breakdown panel component renders service breakdown panel 1`] = color="#7492e7" type="dot" > - - + > + + +
    diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/span_detail_flyout.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/span_detail_flyout.test.tsx.snap index e4eb22e85d..4f5a9b424e 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/span_detail_flyout.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/span_detail_flyout.test.tsx.snap @@ -60,7 +60,11 @@ exports[` spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec renders the empty component 1`] = ` viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" - /> + > + +
    spec renders the empty component 1`] = ` size="m" type="cross" > - spec renders the empty component 1`] = ` viewBox="0 0 16 16" width={16} xmlns="http://www.w3.org/2000/svg" - /> - + > + + + diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap index 1be451ac0a..eb5619545b 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap @@ -281,7 +281,7 @@ exports[`Traces component renders empty traces page 1`] = ` size="m" type="arrowDown" > - - + > + + + - - + > + + + @@ -920,7 +928,7 @@ exports[`Traces component renders empty traces page 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -1074,7 +1090,7 @@ exports[`Traces component renders empty traces page 1`] = ` size="m" type="refresh" > - - + > + + + - - + > + + + diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces_table.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces_table.test.tsx.snap index 43f7391229..0662d5db1e 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces_table.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces_table.test.tsx.snap @@ -187,7 +187,7 @@ exports[`Traces table component renders empty traces table message 1`] = ` size="m" type="popout" > - - + > + + + - - + > + + + - - + > + + + @@ -2719,7 +2731,7 @@ exports[`Traces table component renders traces table 1`] = ` size="m" type="copyClipboard" > - - + > + + + @@ -3079,7 +3095,7 @@ exports[`Traces table component renders traces table 1`] = ` size="s" type="arrowDown" > - - + > + + + - - + > + + + @@ -3318,7 +3342,7 @@ exports[`Traces table component renders traces table 1`] = ` size="m" type="arrowRight" > - - + > + + + diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap index 10c63f396a..6c6d9253e7 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap @@ -567,7 +567,7 @@ exports[`Gauge component Renders gauge component 1`] = ` size="xxl" type="visGauge" > - - + > + + + - - + > + + +

    Text