Skip to content

Commit

Permalink
address flakiness, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Apr 2, 2020
1 parent 7af1759 commit 9de6355
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/test/functional/apps/endpoint/host_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
before(async () => {
await esArchiver.load('endpoint/metadata/api_feature');
await pageObjects.common.navigateToUrlWithBrowserHistory('endpoint', '/hosts');
await pageObjects.header.waitUntilLoadingHasFinished();
});

it('finds title', async () => {
Expand Down Expand Up @@ -68,7 +69,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
'xxxx',
],
];
await pageObjects.header.waitUntilLoadingHasFinished();
const tableData = await pageObjects.endpoint.getEndpointAppTableData('hostListTable');
expect(tableData).to.eql(expectedData);
});
Expand Down Expand Up @@ -115,6 +115,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
// clear out the data and reload the page
await esArchiver.unload('endpoint/metadata/api_feature');
await pageObjects.common.navigateToUrlWithBrowserHistory('endpoint', '/hosts');
await pageObjects.header.waitUntilLoadingHasFinished();
});
after(async () => {
// reload the data so the other tests continue to pass
Expand All @@ -136,6 +137,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
'/hosts',
'selected_host=fc0ff548-feba-41b6-8367-65e8790d0eaf'
);
await pageObjects.header.waitUntilLoadingHasFinished();
});

it('shows a flyout', async () => {
Expand Down

0 comments on commit 9de6355

Please sign in to comment.