Skip to content

Commit

Permalink
Update when to run graph tests (#137993)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 2dfc992)
  • Loading branch information
liza-mae committed Aug 9, 2022
1 parent 97305e9 commit 3e38d3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions x-pack/test/upgrade/apps/graph/graph_smoke_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@
*/

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

export default function ({ getPageObjects, getService }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'header', 'home', 'graph']);
const log = getService('log');

describe('upgrade graph smoke tests', function describeIndexTests() {
before(async function () {
log.debug(process.env.ORIGINAL_VERSION!);
if (semver.lt(process.env.ORIGINAL_VERSION!, '7.6.0-SNAPSHOT')) {
log.debug('Skipping! These tests are valid only for 7.6+ versions');
this.skip();
}
});

const spaces = [
{ space: 'default', basePath: '' },
{ space: 'automation', basePath: 's/automation' },
Expand Down

0 comments on commit 3e38d3e

Please sign in to comment.