Skip to content

Commit

Permalink
ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Apr 16, 2021
1 parent 49e72a0 commit 56a2d82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/test/examples/search_examples/search_example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
* 2.0.
*/

import expect from '@kbn/expect';
import { FtrProviderContext } from '../../functional/ftr_provider_context';

// eslint-disable-next-line import/no-default-export
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const PageObjects = getPageObjects(['common', 'timePicker']);
const toasts = getService('toasts');
const retry = getService('retry');

describe('Search session example', () => {
Expand All @@ -28,9 +26,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'Jan 1, 2016 @ 00:00:00.000'
);
await testSubjects.click('searchSourceWithOther');
await testSubjects.click('responseTab');

await retry.waitFor('has other bucket', async () => {
await testSubjects.click('responseTab');
const codeBlock = await testSubjects.find('responseCodeBlock');
const visibleText = await codeBlock.getVisibleText();
return visibleText.indexOf('__other__') > -1;
Expand Down

0 comments on commit 56a2d82

Please sign in to comment.