Skip to content

Commit

Permalink
Update tests and snapshots post-conflict resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Aug 20, 2024
1 parent d1440a0 commit aee6ada
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 43 deletions.
4 changes: 2 additions & 2 deletions public/pages/Aliases/containers/Aliases/Aliases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class Aliases extends MDSEnabledComponent<AliasesProps, AliasesState> {
const description = [
{
renderComponent: (
<EuiFormRow
<EuiCompressedFormRow
fullWidth
helpText={
<div style={{ width: "51%" }}>
Expand All @@ -320,7 +320,7 @@ class Aliases extends MDSEnabledComponent<AliasesProps, AliasesState> {
}
>
<></>
</EuiFormRow>
</EuiCompressedFormRow>
),
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
aria-describedby="some_html_id-help-0"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox--compressed"
class="euiComboBox"
role="combobox"
>
<div
class="euiFormControlLayout euiFormControlLayout--compressed"
class="euiFormControlLayout"
>
<div
class="euiFormControlLayout__childrenWrapper"
>
<div
class="euiComboBox__inputWrap euiComboBox__inputWrap--compressed euiComboBox__inputWrap-isClearable"
class="euiComboBox__inputWrap euiComboBox__inputWrap-isClearable"
data-test-subj="comboBoxInput"
tabindex="-1"
>
Expand Down Expand Up @@ -134,17 +134,17 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
aria-describedby="some_html_id-help-0"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox--compressed euiComboBox-isDisabled"
class="euiComboBox euiComboBox-isDisabled"
role="combobox"
>
<div
class="euiFormControlLayout euiFormControlLayout--compressed"
class="euiFormControlLayout"
>
<div
class="euiFormControlLayout__childrenWrapper"
>
<div
class="euiComboBox__inputWrap euiComboBox__inputWrap--compressed"
class="euiComboBox__inputWrap"
data-test-subj="comboBoxInput"
tabindex="-1"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
<div
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox--compressed"
class="euiComboBox"
role="combobox"
>
<div
class="euiFormControlLayout euiFormControlLayout--compressed"
class="euiFormControlLayout"
>
<div
class="euiFormControlLayout__childrenWrapper"
>
<div
class="euiComboBox__inputWrap euiComboBox__inputWrap--compressed euiComboBox__inputWrap--noWrap euiComboBox__inputWrap-isClearable"
class="euiComboBox__inputWrap euiComboBox__inputWrap--noWrap euiComboBox__inputWrap-isClearable"
data-test-subj="comboBoxInput"
tabindex="-1"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
aria-describedby="some_html_id-help-0"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox--compressed"
class="euiComboBox"
role="combobox"
>
<div
class="euiFormControlLayout euiFormControlLayout--compressed"
class="euiFormControlLayout"
>
<div
class="euiFormControlLayout__childrenWrapper"
>
<div
class="euiComboBox__inputWrap euiComboBox__inputWrap--compressed euiComboBox__inputWrap-isClearable"
class="euiComboBox__inputWrap euiComboBox__inputWrap-isClearable"
data-test-subj="comboBoxInput"
tabindex="-1"
>
Expand Down Expand Up @@ -145,17 +145,17 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
aria-describedby="some_html_id-help-0"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox--compressed euiComboBox-isDisabled"
class="euiComboBox euiComboBox-isDisabled"
role="combobox"
>
<div
class="euiFormControlLayout euiFormControlLayout--compressed"
class="euiFormControlLayout"
>
<div
class="euiFormControlLayout__childrenWrapper"
>
<div
class="euiComboBox__inputWrap euiComboBox__inputWrap--compressed"
class="euiComboBox__inputWrap"
data-test-subj="comboBoxInput"
tabindex="-1"
>
Expand Down Expand Up @@ -291,17 +291,17 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
<div
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox--compressed"
class="euiComboBox"
role="combobox"
>
<div
class="euiFormControlLayout euiFormControlLayout--compressed"
class="euiFormControlLayout"
>
<div
class="euiFormControlLayout__childrenWrapper"
>
<div
class="euiComboBox__inputWrap euiComboBox__inputWrap--compressed euiComboBox__inputWrap--noWrap euiComboBox__inputWrap-isClearable"
class="euiComboBox__inputWrap euiComboBox__inputWrap--noWrap euiComboBox__inputWrap-isClearable"
data-test-subj="comboBoxInput"
tabindex="-1"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref<FieldInstance>) =>
},
{
renderComponent: (
<EuiButton
<EuiSmallButton
fill
size="s"
style={{ marginRight: 20 }}
onClick={() => {
const showValue: TemplateItemRemote = {
Expand All @@ -259,7 +258,7 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref<FieldInstance>) =>
}}
>
View JSON
</EuiButton>
</EuiSmallButton>
),
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
EuiToolTip,
EuiFlexGroup,
EuiFlexItem,
EuiSmallButton,
} from "@elastic/eui";
import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel";
import { DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_QUERY_PARAMS, HEALTH_TO_COLOR } from "../../utils/constants";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,16 +548,15 @@ export class ManagedIndices extends MDSEnabledComponent<ManagedIndicesProps, Man
};

const actionsButton = (
<EuiButton
<EuiSmallButton
iconType="arrowDown"
iconSide="right"
disabled={!selectedItems.length}
onClick={this.onActionButtonClick}
data-test-subj="actionButton"
size="s"
>
Actions
</EuiButton>
</EuiSmallButton>
);

const popoverActionItems = [
Expand Down
7 changes: 3 additions & 4 deletions public/pages/Policies/containers/Policies/Policies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
// @ts-ignore
Pagination,
EuiTableSelectionType,
EuiButton,
EuiSmallButton,
EuiContextMenuItem,
EuiTextColor,
EuiFlexGroup,
Expand Down Expand Up @@ -432,16 +432,15 @@ export class Policies extends MDSEnabledComponent<PoliciesProps, PoliciesState>
};

const actionsButton = (
<EuiButton
<EuiSmallButton
iconType="arrowDown"
iconSide="right"
disabled={!selectedItems.length}
onClick={this.onActionButtonClick}
data-test-subj="actionButton"
size="s"
>
Actions
</EuiButton>
</EuiSmallButton>
);

const popoverItems = [
Expand Down
1 change: 0 additions & 1 deletion public/pages/Rollups/containers/Rollups/Rollups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ export class Rollups extends MDSEnabledComponent<RollupsProps, RollupsState> {
disabled={!selectedItems.length}
onClick={this.onActionButtonClick}
data-test-subj="actionButton"
size={useNewUX ? "s" : undefined}
>
Actions
</EuiSmallButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
EuiFlexGroup,
EuiButtonIcon,
EuiCompressedFieldSearch,
EuiSmallButton,
} from "@elastic/eui";
import { BREADCRUMBS, PLUGIN_NAME, ROUTES, SNAPSHOT_MANAGEMENT_DOCUMENTATION_URL } from "../../../../utils/constants";
import { getMessagePrompt, getSMPoliciesQueryParamsFromURL, renderTimestampMillis } from "../../helpers";
Expand Down
5 changes: 2 additions & 3 deletions public/pages/Snapshots/containers/Snapshots/Snapshots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,16 +479,15 @@ export class Snapshots extends MDSEnabledComponent<SnapshotsProps, SnapshotsStat
};

const actionsButton = (
<EuiButton
<EuiSmallButton
iconType="arrowDown"
iconSide="right"
disabled={!selectedItems.length}
onClick={this.onActionButtonClick}
data-test-subj="actionButton"
size="s"
>
Actions
</EuiButton>
</EuiSmallButton>
);

const search = {
Expand Down
4 changes: 2 additions & 2 deletions public/pages/Templates/containers/Templates/Templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class Templates extends MDSEnabledComponent<TemplatesProps, TemplatesState> {
<EuiTitle>
<span>Templates</span>
</EuiTitle>
<EuiFormRow
<EuiCompressedFormRow
fullWidth
helpText={
<div>
Expand All @@ -472,7 +472,7 @@ class Templates extends MDSEnabledComponent<TemplatesProps, TemplatesState> {
}
>
<></>
</EuiFormRow>
</EuiCompressedFormRow>
</>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,22 +333,21 @@ export class TransformDetails extends Component<TransformDetailsProps, Transform
},
{
renderComponent: (
<EuiButton size="s" onClick={() => (!this.state.enabled ? onClickEnable() : onClickDisable())}>
<EuiSmallButton onClick={() => (!this.state.enabled ? onClickEnable() : onClickDisable())}>
{this.state.enabled ? "Disable" : "Enable"}
</EuiButton>
</EuiSmallButton>
),
},
{
renderComponent: (
<EuiButton
size="s"
<EuiSmallButton
onClick={() => {
this.closePopover();
this.showJsonModal();
}}
>
View JSON
</EuiButton>
</EuiSmallButton>
),
},
{
Expand Down

0 comments on commit aee6ada

Please sign in to comment.