Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@eslint/js": "^9.31.0",
"@grafana/aws-sdk": "0.7.1",
"@grafana/eslint-config": "^8.1.0",
"@grafana/plugin-e2e": "^2.1.7",
"@grafana/plugin-e2e": "^2.1.9-canary.2053.17286332574.0",
"@grafana/tsconfig": "^2.0.0",
"@playwright/test": "1.53.1",
"@stylistic/eslint-plugin-ts": "^4.4.1",
Expand Down
10 changes: 1 addition & 9 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ import dotenv from 'dotenv';
import path from 'path';

// Read from ".env" file.
dotenv.config({ path: path.resolve(__dirname, '.env') });
dotenv.config({ path: path.resolve(__dirname, '.env'), quiet: true });

const pluginE2eAuth = `${dirname(require.resolve('@grafana/plugin-e2e'))}/auth`;

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });

/**
* See https://playwright.dev/docs/test-configuration.
*/
Expand Down
3 changes: 1 addition & 2 deletions tests/alertRule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { test, expect } from '@grafana/plugin-e2e';
test.use({
featureToggles: {
alertingQueryAndExpressionsStepMode: false,
alertingNotificationsStepMode: false,
},
});

Expand All @@ -21,6 +22,4 @@ test('should successfully create an alert rule', async ({
`select region, avg(measure_value::double) from $__database.$__table where time between from_milliseconds(1615395600000) and from_milliseconds(1615395900000) and measure_value::double > 1 group by region limit 10`
);
await expect(alertRuleEditPage.evaluate()).toBeOK();
// TODO: remove page.unrouteAll if onBlur handler is removed from SQLEditor
await page.unrouteAll({ behavior: 'ignoreErrors' });
});
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1153,10 +1153,10 @@
ua-parser-js "^1.0.32"
web-vitals "^4.0.1"

"@grafana/plugin-e2e@^2.1.7":
version "2.1.7"
resolved "https://registry.yarnpkg.com/@grafana/plugin-e2e/-/plugin-e2e-2.1.7.tgz#bb17b9c4f6081e0013ab3fa00a8403ac819a6d26"
integrity sha512-gf2Zu9YnF3QJeFnYkLN/TXUqemBDjwNjjBQ05IZw1LQiHR1Qg/TogZd4KiV9AvI9O2Vorb1kzVLr4eokWEMD2g==
"@grafana/plugin-e2e@^2.1.9-canary.2053.17286332574.0":
version "2.1.9-canary.2053.17286332574.0"
resolved "https://registry.yarnpkg.com/@grafana/plugin-e2e/-/plugin-e2e-2.1.9-canary.2053.17286332574.0.tgz#b6ed62f1673b9f0a7fd4b753f6e3186dca4e6c18"
integrity sha512-ygfdtLfJjx4UC3/xnsnGiqUBgMPwk0MbVzUsCeN59u7VPts+06yc/lbDL0URACQtdjEQJS7uu6X8IXgJAdXQow==
dependencies:
"@grafana/e2e-selectors" "^12.1.0-254610"
semver "^7.5.4"
Expand Down
Loading