Skip to content

Commit b947f35

Browse files
authored
[data.search] Skip async search tests in build candidates and production builds (#81547) (#81705)
* Skip async search tests in build candidates and production builds * Add log when skipping
1 parent aee72ff commit b947f35

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

x-pack/test/functional/apps/dashboard/async_search/async_search.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,20 @@ import expect from '@kbn/expect';
88
import { FtrProviderContext } from '../../../ftr_provider_context';
99

1010
export default function ({ getService, getPageObjects }: FtrProviderContext) {
11+
const es = getService('es');
1112
const testSubjects = getService('testSubjects');
13+
const log = getService('log');
1214
const PageObjects = getPageObjects(['common', 'header', 'dashboard', 'visChart']);
1315

1416
describe('dashboard with async search', () => {
17+
before(async function () {
18+
const { body } = await es.info();
19+
if (!body.version.number.includes('SNAPSHOT')) {
20+
log.debug('Skipping because this build does not have the required shard_delay agg');
21+
this.skip();
22+
}
23+
});
24+
1525
it('not delayed should load', async () => {
1626
await PageObjects.common.navigateToApp('dashboard');
1727
await PageObjects.dashboard.gotoDashboardEditMode('Not Delayed');

0 commit comments

Comments
 (0)