diff options
Diffstat (limited to 'plugins/CoreHome/tests/UI/SingleMetricView_spec.js')
-rw-r--r-- | plugins/CoreHome/tests/UI/SingleMetricView_spec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CoreHome/tests/UI/SingleMetricView_spec.js b/plugins/CoreHome/tests/UI/SingleMetricView_spec.js index 7884bf087e..93b1959894 100644 --- a/plugins/CoreHome/tests/UI/SingleMetricView_spec.js +++ b/plugins/CoreHome/tests/UI/SingleMetricView_spec.js @@ -28,7 +28,7 @@ describe('SingleMetricView', function () { var elem = await page.waitForSelector('#widgetCoreVisualizationssingleMetricViewcolumn'); await page.waitForNetworkIdle(); - await page.waitFor(250); + await page.waitForTimeout(250); expect(await elem.screenshot()).to.matchImage('loaded'); }); @@ -41,7 +41,7 @@ describe('SingleMetricView', function () { $('#dashboardWidgetsArea .jqplot-seriespicker-popover label:contains(Revenue)').click(); }); await page.waitForNetworkIdle(); - await page.waitFor(250); + await page.waitForTimeout(250); var elem = await page.waitForSelector('#dashboardWidgetsArea #widgetCoreVisualizationssingleMetricViewcolumn'); expect(await elem.screenshot()).to.matchImage('formatted_metric'); @@ -51,12 +51,12 @@ describe('SingleMetricView', function () { await page.evaluate(function(){ $('#dashboardWidgetsArea #widgetCoreVisualizationssingleMetricViewcolumn .jqplot-seriespicker').last().trigger('mouseenter'); }); - await page.waitFor(250); + await page.waitForTimeout(250); await page.evaluate(function(){ $('#dashboardWidgetsArea .jqplot-seriespicker-popover label:contains(_x)').click() }); await page.waitForNetworkIdle(); - await page.waitFor(250); + await page.waitForTimeout(250); var elem = await page.$('#dashboardWidgetsArea #widgetCoreVisualizationssingleMetricViewcolumn'); expect(await elem.screenshot()).to.matchImage('goal_metric'); @@ -67,12 +67,12 @@ describe('SingleMetricView', function () { await page.evaluate(function(){ $('#dashboardWidgetsArea #widgetCoreVisualizationssingleMetricViewcolumn .jqplot-seriespicker').trigger('mouseenter'); }); - await page.waitFor(250); + await page.waitForTimeout(250); await page.evaluate(function(){ $('#dashboardWidgetsArea #widgetCoreVisualizationssingleMetricViewcolumn .jqplot-seriespicker-popover label:contains(Revenue)').click() }); await page.waitForNetworkIdle(); - await page.waitFor(250); + await page.waitForTimeout(250); var elem = await page.$('#dashboardWidgetsArea #widgetCoreVisualizationssingleMetricViewcolumn'); expect(await elem.screenshot()).to.matchImage('range'); |