Skip to content

Commit

Permalink
Added Component Integration Test for Refresh Index Action (elastic#11…
Browse files Browse the repository at this point in the history
…4405)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
John Dorlus and kibanamachine authored Dec 21, 2021
1 parent 7d977a3 commit 85c9136
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 85c9136

Please sign in to comment.