Skip to content

Commit

Permalink
Disable the functional test for OSS
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jan 25, 2021
1 parent 5f1d419 commit 4413117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
22 changes: 2 additions & 20 deletions test/functional/apps/visualize/_chart_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,17 @@ import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const deployment = getService('deployment');
const log = getService('log');
const PageObjects = getPageObjects(['visualize']);
let isOss = true;

describe('chart types', function () {
before(async function () {
log.debug('navigateToApp visualize');
isOss = await deployment.isOss();
await PageObjects.visualize.navigateToNewVisualization();
});

it('should show the promoted vis types for the first step', async function () {
const expectedChartTypes = ['Custom visualization', 'TSVB'];
if (!isOss) {
expectedChartTypes.push('Lens', 'Maps');
}
const expectedChartTypes = ['Custom visualization', 'Lens', 'Maps', 'TSVB'];

// find all the chart types and make sure there all there
const chartTypes = (await PageObjects.visualize.getPromotedVisTypes()).sort();
Expand All @@ -39,9 +33,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

it('should show the correct agg based chart types', async function () {
await PageObjects.visualize.clickAggBasedVisualizations();
let expectedChartTypes = [
const expectedChartTypes = [
'Area',
'Coordinate Map',
'Data table',
'Gauge',
'Goal',
Expand All @@ -50,21 +43,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'Line',
'Metric',
'Pie',
'Region Map',
'Tag cloud',
'Timelion',
'Vertical bar',
];
if (!isOss) {
expectedChartTypes = _.remove(expectedChartTypes, function (n) {
return n !== 'Coordinate Map';
});
expectedChartTypes = _.remove(expectedChartTypes, function (n) {
return n !== 'Region Map';
});
expectedChartTypes.sort();
}
log.debug('oss= ' + isOss);

// find all the chart types and make sure there all there
const chartTypes = (await PageObjects.visualize.getChartTypes()).sort();
Expand Down
5 changes: 5 additions & 0 deletions test/functional/apps/visualize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
loadTestFile(require.resolve('./_data_table'));
loadTestFile(require.resolve('./_data_table_nontimeindex'));
loadTestFile(require.resolve('./_data_table_notimeindex_filters'));

// this check is not needed when the CI doesn't run anymore for the OSS
if (!isOss) {
loadTestFile(require.resolve('./_chart_types'));
}
});

describe('', function () {
Expand Down

0 comments on commit 4413117

Please sign in to comment.