Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Change e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin MOUTY committed Sep 27, 2024
1 parent a93085c commit 011c656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/configEditor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test, expect } from '@grafana/plugin-e2e';
import { MyDataSourceOptions, MySecureJsonData } from '../src/types';

test('"Save & test" should be successful when configuration is valid', async ({
createDataSourceConfigPage,
Expand Down Expand Up @@ -28,6 +27,7 @@ test('"Save & test" should display success alert box when config is valid', asyn
configPage.datasource.uid,
configPage.datasource.id.toString()
)}/health`;
console.log("healthCheckPath: " +healthCheckPath)
await expect(configPage.saveAndTest({ path: healthCheckPath })).not.toBeOK();
await expect(configPage).toHaveAlert('error');
expect(configPage).toHaveAlert('error');
});

0 comments on commit 011c656

Please sign in to comment.