Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reporting] fix functional visualize app test #190016

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions x-pack/test/functional/apps/visualize/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('PNG reports: sample data created in 7.6', () => {
const reportFileName = 'tsvb';

before(async () => {
before('apply kibana server settings: timeDefaults and defaultIndex', async () => {
await kibanaServer.uiSettings.replace({
'timepicker:timeDefaults':
'{ "from": "2022-04-15T00:00:00.000Z", "to": "2022-05-22T00:00:00.000Z"}',
Expand All @@ -123,8 +123,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.share.closeShareModal();
});

// FAILING ARTIFACTS SNAPSHOT: https://github.com/elastic/kibana/issues/189590
it.skip('TSVB Gauge: PNG file matches the baseline image', async function () {
it('TSVB Gauge: PNG file matches the baseline image', async function () {
log.debug('load saved visualization');
await PageObjects.visualize.loadSavedVisualization(
'[K7.6-eCommerce] Sold Products per Day',
Expand All @@ -139,7 +138,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

log.debug('get the report download URL');
const url = await PageObjects.reporting.getReportURL(60000);
log.debug('download the report');
log.debug(`download the report at ${url}`);
const reportData = await PageObjects.reporting.getRawReportData(url ?? '');
const sessionReportPath = await PageObjects.reporting.writeSessionReport(
reportFileName,
Expand Down