Skip to content

Commit

Permalink
unskipping interpreter functional tests (#40840) (#40871)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Jul 22, 2019
1 parent 7573007 commit 945dde0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions test/interpreter_functional/test_suites/run_pipeline/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function ({ getService, updateBaselines }) {

// if we want to do multiple different tests using the same data, or reusing a part of expression its
// possible to retrieve the intermediate result and reuse it in later expressions
describe.skip('reusing partial results', () => {
describe('reusing partial results', () => {
it ('does some screenshot comparisons', async () => {
const expression = `kibana | kibana_context | esaggs index='logstash-*' aggConfigs='[
{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},
Expand All @@ -94,16 +94,17 @@ export default function ({ getService, updateBaselines }) {

// we reuse that response to render 3 different charts and compare screenshots with baselines
const tagCloudExpr =
`tagcloud metric={visdimension 1 format="number"} bucket={visdimension 0}'`;
`tagcloud metric={visdimension 1 format="number"} bucket={visdimension 0}`;
await expectExpression('partial_test_1', tagCloudExpr, context).toMatchScreenshot();

const metricExpr =
`metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}'`;
`metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}`;
await expectExpression('partial_test_2', metricExpr, context).toMatchScreenshot();

const regionMapExpr =
`regionmap visConfig='{"metric":{"accessor":1,"format":{"id":"number"}},"bucket":{"accessor":0}}'`;
await expectExpression('partial_test_3', regionMapExpr, context).toMatchScreenshot();
// todo: regionmap doesn't correctly signal when its done rendering (base layer might not yet be loaded)
// const regionMapExpr =
// `regionmap visConfig='{"metric":{"accessor":1,"format":{"id":"number"}},"bucket":{"accessor":0}}'`;
// await expectExpression('partial_test_3', regionMapExpr, context).toMatchScreenshot();
});
});
});
Expand Down

0 comments on commit 945dde0

Please sign in to comment.