diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js index 29bcf6476..4e23e1fea 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js @@ -60,7 +60,7 @@ describe("Aliases", () => { describe("can create a alias with wildcard and specific name", () => { it("successfully", () => { cy.get('[data-test-subj="Create aliasButton"]').click(); - cy.get('[data-test-subj="form-name-alias"]').type(CREATE_ALIAS); + cy.get('[data-test-subj="form-name-alias"] input').type(CREATE_ALIAS); cy.get('[data-test-subj="form-name-indexArray"] [data-test-subj="comboBoxSearchInput"]').type( `${EDIT_INDEX}{enter}${SAMPLE_INDEX_PREFIX}-*{enter}` ); diff --git a/public/JobHandler/components/ErrorToastContentForJob.tsx b/public/JobHandler/components/ErrorToastContentForJob.tsx index 586fde083..76bb962c9 100644 --- a/public/JobHandler/components/ErrorToastContentForJob.tsx +++ b/public/JobHandler/components/ErrorToastContentForJob.tsx @@ -2,7 +2,7 @@ * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ -import { EuiButton, EuiSpacer, EuiText } from "@elastic/eui"; +import { EuiSmallButton, EuiSpacer, EuiText } from "@elastic/eui"; import React from "react"; import { Modal } from "../../components/Modal"; @@ -14,7 +14,7 @@ export const ErrorToastContentForJob = (props: { shortError?: React.ReactChild; {fullError ? ( <> - { Modal.show({ @@ -34,7 +34,7 @@ export const ErrorToastContentForJob = (props: { shortError?: React.ReactChild; color="danger" > See full error - + ) : null} diff --git a/public/JobHandler/components/__snapshots__/components.test.tsx.snap b/public/JobHandler/components/__snapshots__/components.test.tsx.snap index f08aeffe9..ed86b3107 100644 --- a/public/JobHandler/components/__snapshots__/components.test.tsx.snap +++ b/public/JobHandler/components/__snapshots__/components.test.tsx.snap @@ -48,7 +48,7 @@ exports[` spec render with action 1`] = ` class="euiSpacer euiSpacer--l" />
( - + ), [onClickCancel] diff --git a/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap b/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap index f24bafde0..cf8474e50 100644 --- a/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap +++ b/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap @@ -20,7 +20,7 @@ HTMLCollection [ class="euiFlexItem euiFlexItem--flexGrowZero" >
spec it goes to templates page when click >
spec it goes to templates page when click Index mapping
spec it goes to templates page when click >
) : ( - + View JSON - + )} @@ -304,20 +304,14 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref - + Cancel - + - + Create component template - + diff --git a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap index e497072b8..491aa488c 100644 --- a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap +++ b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap @@ -14,7 +14,7 @@ exports[` spec render component 1`] = ` Create component template
spec render component 1`] = ` class="euiSpacer euiSpacer--s" />
@@ -106,13 +106,13 @@ exports[` spec render component 1`] = ` class="euiToolTipAnchor euiToolTipAnchor--displayBlock" >
@@ -122,7 +122,7 @@ exports[` spec render component 1`] = `
spec render component 1`] = ` class="euiSpacer euiSpacer--l" />
@@ -175,13 +175,13 @@ exports[` spec render component 1`] = ` class="euiToolTipAnchor euiToolTipAnchor--displayBlock" >
@@ -207,7 +207,7 @@ exports[` spec render component 1`] = ` class="euiFlexItem" >
spec render component 1`] = ` >
spec render component 1`] = ` >
spec render component 1`] = ` Index mapping
spec render component 1`] = ` >
spec render component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" >
); diff --git a/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap b/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap index 310fd6a83..75b67021c 100644 --- a/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap @@ -45,7 +45,7 @@ exports[` spec renders the component 1`] = ` class="euiSpacer euiSpacer--s" />
spec renders the component 1`] = ` class="euiFormRow__fieldWrapper" >
{(copy: () => void) => ( - + Copy - + )} , - + Auto indent - , + , ]} >
diff --git a/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx b/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx index 1697b2169..9c979eb5c 100644 --- a/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx +++ b/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx @@ -6,8 +6,8 @@ import React, { ChangeEvent } from "react"; import { EuiSpacer, - EuiButton, - EuiTextArea, + EuiSmallButton, + EuiCompressedTextArea, EuiText, // @ts-ignore EuiCopy, @@ -23,7 +23,7 @@ interface DefinePolicyProps { /* * Attempting to test EuiCodeEditor which uses react-ace was a lot more effort than seemed worthwhile - * at the moment, so in the meantime we will mock DefinePolicy as a EuiTextArea so that we can still test + * at the moment, so in the meantime we will mock DefinePolicy as a EuiCompressedTextArea so that we can still test * the functionality of CreatePolicy (minus the JSON code editor). * */ const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: DefinePolicyProps) => ( @@ -34,14 +34,14 @@ const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: Defi actions={[ {(copy: () => void) => ( - + Copy - + )} , - + Auto Indent - , + , ]} >
@@ -50,7 +50,11 @@ const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: Defi
- ) => onChange(e.target.value)} aria-label="Code Editor" /> + ) => onChange(e.target.value)} + aria-label="Code Editor" + /> ); diff --git a/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap b/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap index 5de09b1d9..57122b9d4 100644 --- a/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap @@ -37,7 +37,7 @@ exports[` spec renders the component 1`] = ` class="euiToolTipAnchor" >
diff --git a/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap b/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap index b5eaf64c7..b4be236d8 100644 --- a/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap @@ -57,7 +57,7 @@ exports[` spec renders the create component 1`] = ` class="euiSpacer euiSpacer--s" />
spec renders the create component 1`] = ` class="euiFormRow__fieldWrapper" >
spec renders the create component 1`] = ` class="euiToolTipAnchor" >