From fa157497ae901bfcfb0790bf0308c0449e546b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Tue, 28 May 2024 17:47:09 +0200 Subject: [PATCH] Fix test for 10.0.13 --- tests/ConfigEditor.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ConfigEditor.spec.ts b/tests/ConfigEditor.spec.ts index c669a3db..3314b951 100644 --- a/tests/ConfigEditor.spec.ts +++ b/tests/ConfigEditor.spec.ts @@ -13,12 +13,14 @@ test('ConfigEditor smoke test', async ({ createDataSourceConfigPage, page, selec route.fulfill({ status: 200 }); }); await configPage.getByGrafanaSelector(components.ConfigEditor.AccessToken).fill('my-access-token'); - if (semver.lt(grafanaVersion, '10.0.0')) { + // TODO: Move this logic to plugin-e2e + if (semver.lt(grafanaVersion, '10.1.0')) { await page.getByText('Enterprise', { exact: true }).click(); } else { await page.getByRole('radio', { name: 'Enterprise' }).check(); } await page.getByPlaceholder('URL of GitHub Enterprise').fill('https://github.mycompany.com'); + // TODO: Move this logic to plugin-e2e if (semver.lt(grafanaVersion, '10.0.0')) { await page.getByLabel('Data source settings page Save and Test button').click(); } else {