Skip to content

Commit

Permalink
[Visualize] Improve linked saved search functional test (#58339)
Browse files Browse the repository at this point in the history
* Remove redundant sleep 
* convert to TypeScript
  • Loading branch information
kertal authored Feb 25, 2020
1 parent 120f03d commit fac57c1
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 fac57c1

Please sign in to comment.