Skip to content

Commit 163eb1f

Browse files
committed
Update dependencies II
1 parent 91d9b90 commit 163eb1f

File tree

8 files changed

+6570
-8712
lines changed

8 files changed

+6570
-8712
lines changed

.config/jest/utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ const nodeModulesToTransform = (moduleNames) => `node_modules\/(?!.*(${moduleNam
1414
const grafanaESModules = [
1515
'.pnpm', // Support using pnpm symlinked packages
1616
'@grafana/schema',
17+
'@wojtekmaj/date-utils',
1718
'd3',
1819
'd3-color',
1920
'd3-force',
2021
'd3-interpolate',
2122
'd3-scale-chromatic',
23+
'get-user-locale',
24+
'marked',
25+
'memoize',
26+
'mimic-function',
2227
'ol',
28+
'react-calendar',
2329
'react-colorful',
2430
'rxjs',
2531
'uuid',

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ process.env.TZ = 'UTC';
66
module.exports = {
77
// Jest configuration provided by Grafana scaffolding
88
...require('./.config/jest.config'),
9-
//testMatch: ['<rootDir>/test/unit/**/*.{spec,test,jest}.{js,jsx,ts,tsx}'],
109
testMatch: ['**/tests/unit/**/*.{spec,test,jest}.{js,jsx,ts,tsx}'],
1110
};

package-lock.json

Lines changed: 6549 additions & 8698 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"devDependencies": {
2929
"@babel/core": "^7.28.5",
3030
"@grafana/eslint-config": "^7.0.0",
31-
"@grafana/plugin-e2e": "^1.19.4",
31+
"@grafana/plugin-e2e": "^2.2.0",
3232
"@grafana/tsconfig": "^2.0.1",
3333
"@playwright/test": "^1.56.1",
34-
"@swc/core": "^1.13.5",
34+
"@swc/core": "^1.13.20",
3535
"@swc/helpers": "^0.5.17",
3636
"@swc/jest": "^0.2.39",
3737
"@testing-library/jest-dom": "6.9.1",
@@ -45,7 +45,7 @@
4545
"css-loader": "^7.1.2",
4646
"dotenv": "^17.2.3",
4747
"eslint-plugin-deprecation": "^3.0.0",
48-
"eslint-webpack-plugin": "^4.2.0",
48+
"eslint-webpack-plugin": "^5.0.0",
4949
"fork-ts-checker-webpack-plugin": "^9.1.0",
5050
"glob": "^11.0.3",
5151
"identity-obj-proxy": "3.0.0",
@@ -73,9 +73,10 @@
7373
"dependencies": {
7474
"@emotion/css": "^11.13.5",
7575
"@grafana/data": "^12.0.2",
76-
"@grafana/runtime": "^11.6.2",
77-
"@grafana/schema": "^11.6.2",
78-
"@grafana/ui": "^11.6.2",
76+
"@grafana/i18n": "^12.2.0",
77+
"@grafana/runtime": "^12.2.0",
78+
"@grafana/schema": "^12.2.0",
79+
"@grafana/ui": "^12.2.0",
7980
"process": "^0.11.10",
8081
"react": "18.3.1",
8182
"react-dom": "18.3.1",

src/ui/components.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ export const OnlyActiveChildren = (props: OnlyActiveChildrenProps): React.JSX.El
572572
<Button
573573
icon="minus"
574574
data-test-id={'cmk-oac-minus-button-' + getLabel(elem)}
575+
aria-label={`Remove ${getLabel(elem)} filter`}
575576
variant="secondary"
576577
onClick={() =>
577578
setActiveComponents((c) => {

tests/e2e/pom/CMKRawQueryEditorPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class CmkRawQueryEditorPage extends CmkQueryEditorPage {
3030
}
3131

3232
async _filterBy(fieldLabel: string, value: string) {
33-
await this.page.getByLabel(fieldLabel).fill(value);
33+
await this.page.getByLabel(fieldLabel, { exact: true }).fill(value);
3434
await this.expectSpinners(false);
3535
await this.page.keyboard.press('Enter');
3636
await this.expectSpinners(false);

tests/e2e/pom/CmkCEEQueryEditorPage.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export class CmkCEEQueryEditorPage extends CmkQueryEditorPage {
1919

2020
async filterByHostname(hostname: string) {
2121
await this.addFilter(FilterTypes.HOSTNAME);
22-
await this.page.getByLabel(FilterTypes.HOSTNAME).fill(hostname);
22+
await this.page.getByLabel(FilterTypes.HOSTNAME, { exact: true }).fill(hostname);
2323
await this.expectSpinners(false);
2424
await this.page.keyboard.press('Enter');
25-
await this.page.getByLabel(FilterTypes.HOSTNAME).blur();
25+
await this.page.getByLabel(FilterTypes.HOSTNAME, { exact: true }).blur();
2626
await this.expectSpinners(false);
2727
}
2828

@@ -48,15 +48,15 @@ export class CmkCEEQueryEditorPage extends CmkQueryEditorPage {
4848

4949
async filterByService(service: Services) {
5050
await this.addFilter(FilterTypes.SERVICE);
51-
await this.page.getByLabel('Service').fill(service);
51+
await this.page.getByLabel('Service', { exact: true }).fill(service);
5252
await this.expectSpinners(false);
5353
await this.page.keyboard.press('Enter');
5454
await this.expectSpinners(false);
5555
}
5656

5757
async filterByHostLabel(label: string) {
5858
await this.addFilter(FilterTypes.HOST_LABELS);
59-
await this.page.getByLabel(FilterTypes.HOST_LABELS).fill(label);
59+
await this.page.getByLabel(FilterTypes.HOST_LABELS, { exact: true }).fill(label);
6060
await this.expectSpinners(false);
6161
await this.page.keyboard.press('Enter');
6262
await this.expectSpinners(false);
@@ -72,7 +72,7 @@ export class CmkCEEQueryEditorPage extends CmkQueryEditorPage {
7272
if (testId) {
7373
component = this.page.getByTestId(testId);
7474
} else {
75-
component = this.page.getByLabel(filter);
75+
component = this.page.getByLabel(filter, { exact: true });
7676
}
7777

7878
await expect(component).toBeVisible();

tests/e2e/pom/CmkQueryEditorPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class CmkQueryEditorPage extends CmkBasePage {
6363

6464
async _selectGraph(componentLabel: string, graph: Graphs) {
6565
await wait(1000);
66-
const locator = this.page.getByLabel(componentLabel);
66+
const locator = this.page.getByLabel(componentLabel, { exact: true });
6767
await this.expectSpinners(false);
6868
await locator.fill(graph);
6969
await this.expectSpinners(false);

0 commit comments

Comments
 (0)