diff --git a/e2e/tests/functional/plugins/plot/overlayPlot.e2e.spec.js b/e2e/tests/functional/plugins/plot/overlayPlot.e2e.spec.js index 7a7acd83c1..bc27c5ef0a 100644 --- a/e2e/tests/functional/plugins/plot/overlayPlot.e2e.spec.js +++ b/e2e/tests/functional/plugins/plot/overlayPlot.e2e.spec.js @@ -214,12 +214,17 @@ test.describe('Overlay Plot', () => { }); await page.goto(overlayPlot.url); + // Wait for plot series data to load and be drawn + await expect(page.locator('.js-series-data-loaded')).toBeVisible(); await page.click('button[title="Edit"]'); await selectInspectorTab(page, 'Elements'); await page.locator(`#inspector-elements-tree >> text=${swgA.name}`).click(); + // Wait for "View Large" plot series data to load and be drawn + await expect(page.locator('.c-overlay .js-series-data-loaded')).toBeVisible(); + const plotPixelSize = await getCanvasPixelsWithData(page); expect(plotPixelSize).toBeGreaterThan(0); });