Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[App Search] Fix Engine Overview not properly stretching to full page height #103337

Merged
merged 1 commit into from
Jun 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ describe('EngineOverview', () => {
setMockValues(values);
});

it('renders', () => {
const wrapper = shallow(<EngineOverview />);
expect(wrapper.find('[data-test-subj="EngineOverview"]')).toHaveLength(1);
});

describe('EmptyEngineOverview', () => {
it('renders when the engine has no documents & the user can add documents', () => {
const myRole = { canManageEngineDocuments: true, canViewEngineCredentials: true };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,5 @@ export const EngineOverview: React.FC = () => {
const canAddDocuments = canManageEngineDocuments && canViewEngineCredentials;
const showEngineOverview = !isEngineEmpty || !canAddDocuments || isMetaEngine;

return (
<div data-test-subj="EngineOverview">
{showEngineOverview ? <EngineOverviewMetrics /> : <EmptyEngineOverview />}
</div>
);
return showEngineOverview ? <EngineOverviewMetrics /> : <EmptyEngineOverview />;
};
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const EmptyEngineOverview: React.FC = () => {
</EuiButton>,
],
}}
data-test-subj="EngineOverview"
>
<DocumentCreationButtons />
<DocumentCreationFlyout />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const EngineOverviewMetrics: React.FC = () => {
}),
}}
isLoading={dataLoading}
data-test-subj="EngineOverview"
>
<EuiFlexGroup>
<EuiFlexItem grow={1}>
Expand Down