Skip to content

Commit

Permalink
Merge branch 'main' into sync-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorelli25 authored Jul 10, 2023
2 parents 83e77a8 + 57fa6ae commit 70a82de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
EuiButton,
EuiButtonEmpty,
EuiLoadingSpinner,
EuiBottomBar,
EuiSpacer,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
Expand All @@ -21,6 +20,7 @@ import { useDispatch } from 'react-redux';
import { useLocation } from 'react-router-dom';
import type { ApplicationStart } from '@kbn/core/public';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template';
import { useShowEditableFormFields, usePolicyDetailsSelector } from '../../policy_hooks';
import {
policyDetails,
Expand Down Expand Up @@ -159,7 +159,7 @@ export const PolicyFormLayout = React.memo(() => {
)}
<PolicyDetailsForm />
<EuiSpacer size="xxl" />
<EuiBottomBar paddingSize="s">
<KibanaPageTemplate.BottomBar paddingSize="s">
<EuiFlexGroup justifyContent="flexEnd" gutterSize="s">
<EuiFlexItem grow={false}>
<EuiButtonEmpty
Expand Down Expand Up @@ -190,7 +190,7 @@ export const PolicyFormLayout = React.memo(() => {
</EuiFlexItem>
)}
</EuiFlexGroup>
</EuiBottomBar>
</KibanaPageTemplate.BottomBar>
</>
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
);
});

it('should not hide the side navigation', async () => {
await testSubjects.scrollIntoView('solutionSideNavItemLink-get_started');
// ensure center of button is visible and not hidden by sticky bottom bar
await testSubjects.click('solutionSideNavItemLink-administration', 1000, 15);
// test cleanup: go back to policy details page
await pageObjects.policy.navigateToPolicyDetails(policyInfo.packagePolicy.id);
});

it('and the show advanced settings button is clicked', async () => {
await testSubjects.missingOrFail('advancedPolicyPanel');

Expand Down

0 comments on commit 70a82de

Please sign in to comment.