Skip to content

Commit

Permalink
Fix test for 10.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanbedi committed May 28, 2024
1 parent 74c2b36 commit fa15749
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ConfigEditor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fa15749

Please sign in to comment.