Added Component Integration Test for Refresh Index Action (#114405) (#122144)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
John Dorlus 2021-12-29 13:42:15 -05:00 committed by GitHub
parent 91779ec7e4
commit 07a1d44b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,6 +209,16 @@ describe('<IndexManagementHome />', () => {
find('indexTableIndexNameLink').at(0).simulate('click');
});
test('should be able to refresh index', async () => {
const { actions } = testBed;
await actions.clickManageContextMenuButton();
await actions.clickContextMenuOption('refreshIndexMenuButton');
const latestRequest = server.requests[server.requests.length - 2];
expect(latestRequest.url).toBe(`${API_BASE_PATH}/indices/refresh`);
});
test('should be able to close an open index', async () => {
const { actions } = testBed;