Skip to content

Commit

Permalink
remove unneeded test for old empty page
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog committed Oct 5, 2021
1 parent 67c1cc7 commit 5e55a1a
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,29 +299,6 @@ describe('Overview', () => {
);
expect(wrapper.find('[data-test-subj="empty-page"]').exists()).toBe(true);
});

it('does not show Endpoint get ready button when ingest is not enabled', () => {
const wrapper = mount(
<TestProviders>
<MemoryRouter>
<Overview />
</MemoryRouter>
</TestProviders>
);
expect(wrapper.find('[data-test-subj="empty-page-endpoint-action"]').exists()).toBe(false);
});

it('shows Endpoint get ready button when ingest is enabled', () => {
mockUseUserPrivileges.mockReturnValue(loadedUserPrivilegesState({ canAccessFleet: true }));
const wrapper = mount(
<TestProviders>
<MemoryRouter>
<Overview />
</MemoryRouter>
</TestProviders>
);
expect(wrapper.find('[data-test-subj="empty-page-endpoint-action"]').exists()).toBe(true);
});
});
});

Expand Down

0 comments on commit 5e55a1a

Please sign in to comment.