From 6914e5d5e5368d5241138f7eeef6268c95d7a668 Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Thu, 29 Feb 2024 15:14:42 +0100 Subject: [PATCH] feat: add push analytics instructions --- public/push-analytics.json | 85 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 public/push-analytics.json diff --git a/public/push-analytics.json b/public/push-analytics.json new file mode 100644 index 0000000000..b74e9691d6 --- /dev/null +++ b/public/push-analytics.json @@ -0,0 +1,85 @@ +{ + "version": "0.0.1", + "showVisualization": { + "strategy": "navigateToUrl", + "steps": [ + { "goto": "{{appUrl}}/#/{{id}}" }, + { + "waitForSelectorConditionally": [ + { + "dashboardItemProperty": "visualization.type", + "value": "PIVOT_TABLE", + "selector": ".pivot-table-container > table" + }, + { + "dashboardItemProperty": "visualization.type", + "value": [ + "COLUMN", + "STACKED_COLUMN", + "BAR", + "STACKED_BAR", + "LINE", + "AREA", + "STACKED_AREA", + "PIE", + "RADAR", + "GAUGE", + "YEAR_OVER_YEAR_LINE", + "YEAR_OVER_YEAR_COLUMN", + "SCATTER", + "BUBBLE", + "SINGLE_VALUE", + "PIVOT_TABLE", + "OUTLIER_TABLE" + ], + "selector": ".highcharts-container" + } + ] + } + ] + }, + "triggerDownload": { + "strategy": "useUiElements", + "steps": [ + { "click": ".push-analytics-download-dropdown-menu-button" }, + { "click": ".push-analytics-download-menu-item" } + ] + }, + "obtainDownloadArtifactConditionally": [ + { + "dashboardItemProperty": "visualization.type", + "value": "PIVOT_TABLE", + "strategy": "scrapeDownloadPage", + "htmlSelector": "body", + "cssSelector": "style" + }, + { + "dashboardItemProperty": "visualization.type", + "value": [ + "COLUMN", + "STACKED_COLUMN", + "BAR", + "STACKED_BAR", + "LINE", + "AREA", + "STACKED_AREA", + "PIE", + "RADAR", + "GAUGE", + "YEAR_OVER_YEAR_LINE", + "YEAR_OVER_YEAR_COLUMN", + "SCATTER", + "BUBBLE", + "SINGLE_VALUE", + "PIVOT_TABLE", + "OUTLIER_TABLE" + ], + "strategy": "screenShotImgOnDownloadPage", + "htmlSelector": "img" + } + ], + "clearVisualization": { + "strategy": "navigateToUrl", + "steps": [{ "goto": "{{appUrl}}/#/new" }] + } +}