Update when to run graph tests (#137993) (#138440)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 2dfc992191)

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-08-09 14:52:50 -04:00 committed by GitHub
parent 4737ed25ad
commit cacc3c3642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' },