From 3982b2185a6a3870be1210aaa4c30a733fd7ff5f Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 9 Dec 2024 19:01:47 +0100 Subject: [PATCH] tests: enhance plot-configurator test --- e2e/chart.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2e/chart.spec.ts b/e2e/chart.spec.ts index 0ee51ed2f..c8127b311 100644 --- a/e2e/chart.spec.ts +++ b/e2e/chart.spec.ts @@ -57,6 +57,13 @@ test.describe('Chart', () => { // Accept remapping and close await page.getByRole('button', { name: 'Apply Template' }).click(); await page.getByRole('button', { name: 'Save' }).click(); + + const indicatorPanel = await page.getByLabel('Indicators in this plot'); + const options = await indicatorPanel.locator('option').allTextContents(); + await expect(options).toContain('bb_lowerband'); + await expect(options).toStrictEqual(['bb_upperband', 'bb_lowerband']); + + // indicatorPanel.selectOption('bb_lowerband'); // Close Plot configurator await page.getByRole('button', { name: 'Plot configurator' }).click();