diff --git a/integration/page_objects/common.ts b/integration/page_objects/common.ts index 3e94e76173..a714a7fef7 100644 --- a/integration/page_objects/common.ts +++ b/integration/page_objects/common.ts @@ -441,7 +441,6 @@ class CommonPage { } async disableAnimations() { - // await this.loadElementFromURL(url, '#story-root'); await page.evaluate(() => { document.querySelector('#story-root')!.classList.add('disable-animations'); }); diff --git a/integration/tests/area_stories.test.ts b/integration/tests/area_stories.test.ts index f1d4c8d66d..60fd1dad3d 100644 --- a/integration/tests/area_stories.test.ts +++ b/integration/tests/area_stories.test.ts @@ -78,7 +78,6 @@ describe('Area series stories', () => { it('shows only positive values when hiding negative one', async () => { const action = async () => { await common.disableAnimations(); - // 'http://localhost:9001/?path=/story/area-chart--with-negative-and-positive&knob-Y scale=log', await page.click('.echLegendItem:nth-child(2) .echLegendItem__label'); }; await common.expectChartAtUrlToMatchScreenshot( @@ -90,7 +89,6 @@ describe('Area series stories', () => { it('shows only negative values when hiding positive one', async () => { const action = async () => { await common.disableAnimations(); - // 'http://localhost:9001/?path=/story/area-chart--with-negative-and-positive&knob-Y scale=log', await page.click('.echLegendItem:nth-child(1) .echLegendItem__label'); }; await common.expectChartAtUrlToMatchScreenshot(