From 59e22a51a8ffacc7307aa7b818eadccd17b13743 Mon Sep 17 00:00:00 2001 From: Leonardo Petrora <29212725+lpetrora@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:00:25 +0200 Subject: [PATCH] Release v3.4.0-beta.1 --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- tests/e2e/models/DashboardPage.ts | 7 +++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f5a46f4..1a61986a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ [//]: # 'The ci will use the first section starting with `##` as release notes.' +## 3.4.0 - Beta 1 +- Updated error message when Rest API cannot be found +- Switched from yarn to npm +- Updated dependencies to latest versions +- Updated unit tests +- Migrated end-to-end tests to Playwright +- Updated documentation + ## 3.3.0 - Support for new autocomplete endpoints - Rebranding of Checkmk commercial products diff --git a/package.json b/package.json index 31446f68..20afd0d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tribe-29-checkmk-datasource", - "version": "3.3.0", + "version": "3.4.0-beta.1", "description": "Datasource for checkmk", "scripts": { "build": "bash utils/plugin_json_to_unsigned.sh && webpack -c ./webpack.config.ts --env production", diff --git a/tests/e2e/models/DashboardPage.ts b/tests/e2e/models/DashboardPage.ts index c6f50ee1..cedf6864 100644 --- a/tests/e2e/models/DashboardPage.ts +++ b/tests/e2e/models/DashboardPage.ts @@ -3,6 +3,8 @@ import { type Page, expect } from '@playwright/test'; import current_config from '../config'; import { FilterTypes, GRAFANA_SELECTORS, GRAFANA_TEXT, GraphTypes } from '../constants'; +const CUSTOM_TIMEOUT = 40000; + export class DashboardPage { readonly page: Page; @@ -58,7 +60,7 @@ export class DashboardPage { if (visible) { await expect(cmp).toBeVisible(); } else { - await expect(cmp).not.toBeVisible({ timeout: 20000 }); + await expect(cmp).not.toBeVisible({ timeout: CUSTOM_TIMEOUT }); } } @@ -73,7 +75,7 @@ export class DashboardPage { if (findByInputValue) { await expect(this.page.locator(fieldSelector).first()).toHaveValue(value); } else { - await expect(this.page.locator(`text="${value}"`).first()).toBeVisible({ timeout: 20000 }); + await expect(this.page.locator(`text="${value}"`).first()).toBeVisible({ timeout: CUSTOM_TIMEOUT }); } } @@ -102,6 +104,7 @@ export class DashboardPage { } async selectPredefinedGraphType(graphType: GraphTypes) { + await this.expectSpinners(false); await this._addFilterBy(`input[id="${GRAFANA_SELECTORS.DASHBOARD.PREDEFINED_GRAPH_FIELD_ID}"]`, graphType); }