Skip to content

Commit

Permalink
strip out changes to src/plugins/home/public/application/components
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Dec 5, 2024
1 parent 1b69f1c commit b4798c8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 21 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
import * as StatusCheckStates from './status_check_states';

import { injectI18n, FormattedMessage } from '@kbn/i18n-react';
import { euiThemeVars } from '@kbn/ui-theme'; // FIXME: remove this, and access style variables from EUI context

class InstructionSetUi extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -277,9 +278,7 @@ class InstructionSetUi extends React.Component {
return (
<EuiSplitPanel.Outer>
<EuiSplitPanel.Inner color="subdued" paddingSize="none">
<EuiTabs css={({ euiTheme }) => ({ padding: `0 ${euiTheme.size.l}` })}>
{this.renderTabs()}
</EuiTabs>
<EuiTabs css={{ padding: `0 ${euiThemeVars.euiSizeL}` }}>{this.renderTabs()}</EuiTabs>
</EuiSplitPanel.Inner>
<EuiSplitPanel.Inner paddingSize="l">
{this.renderHeader()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import React from 'react';
import { EuiProvider } from '@elastic/eui';
import { shallowWithIntl, mountWithIntl } from '@kbn/test-jest-helpers';

import { Tutorial } from './tutorial';
Expand Down Expand Up @@ -77,18 +76,16 @@ const replaceTemplateStrings = (text) => {
};

describe('isCloudEnabled is false', () => {
test.only('should render ON_PREM instructions with instruction toggle', async () => {
test('should render ON_PREM instructions with instruction toggle', async () => {
const component = shallowWithIntl(
<EuiProvider>
<Tutorial.WrappedComponent
addBasePath={addBasePath}
isCloudEnabled={false}
getTutorial={getTutorial}
replaceTemplateStrings={replaceTemplateStrings}
tutorialId={'my_testing_tutorial'}
bulkCreate={() => {}}
/>
</EuiProvider>
<Tutorial.WrappedComponent
addBasePath={addBasePath}
isCloudEnabled={false}
getTutorial={getTutorial}
replaceTemplateStrings={replaceTemplateStrings}
tutorialId={'my_testing_tutorial'}
bulkCreate={() => {}}
/>
);
await loadTutorialPromise;

Expand Down
1 change: 1 addition & 0 deletions src/plugins/home/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@kbn/shared-ux-page-kibana-template",
"@kbn/utility-types",
"@kbn/guided-onboarding",
"@kbn/ui-theme",
"@kbn/config-schema",
"@kbn/utility-types-jest",
"@kbn/es-query",
Expand Down

0 comments on commit b4798c8

Please sign in to comment.