Skip to content

Commit

Permalink
[Visualize] Improve linked saved search functional test (#58339) (#58505
Browse files Browse the repository at this point in the history
)

* Remove redundant sleep 
* Convert to TypeScript
  • Loading branch information
kertal committed Feb 26, 2020
1 parent f17dd96 commit 49e9b1d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
*/

import expect from '@kbn/expect';

export default function({ getService, getPageObjects }) {
import { FtrProviderContext } from '../../ftr_provider_context';
// eslint-disable-next-line import/no-default-export
export default function({ getService, getPageObjects }: FtrProviderContext) {
const filterBar = getService('filterBar');
const retry = getService('retry');
const PageObjects = getPageObjects([
Expand All @@ -40,8 +41,6 @@ export default function({ getService, getPageObjects }) {
await filterBar.addFilter('extension.raw', 'is', 'jpg');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.saveSearch(savedSearchName);
// TODO: Remove this once https://github.com/elastic/kibana/issues/19750 is properly resolved
await PageObjects.common.sleep(500);
});

it('should create a visualization from a saved search', async () => {
Expand Down

0 comments on commit 49e9b1d

Please sign in to comment.