Skip to content
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