From 236c0aab0ed8b6e876fca155bc54df7429e46df4 Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Mon, 6 Jul 2026 15:46:08 +0300 Subject: [PATCH 1/3] chore!: drop node v18, v20 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index bab018e..4addcb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "typescript": "^5.9.2" }, "engines": { - "node": ">=12.0.0" + "node": ">= 22" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index a2769f7..651a0af 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,6 @@ "yargs": "^17.7.2" }, "engines": { - "node": ">=18.19.0" + "node": ">= 22" } } From 1b6fc5d245d7035e0e686b7d49e6eb83252cdb27 Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Mon, 6 Jul 2026 15:46:20 +0300 Subject: [PATCH 2/3] feat: add @testplane/globals --- src/package.ts | 2 +- src/utils/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.ts b/src/package.ts index 8fa7011..b448dd8 100644 --- a/src/package.ts +++ b/src/package.ts @@ -111,7 +111,7 @@ export const installPackages = async ( return new Promise((resolve, reject) => { exec( PMS[packageManager].withRegistry( - `${packageManager} ${PMS[packageManager].install} testplane @testplane/testing-library @swc/core ${pluginsPackages}`, + `${packageManager} ${PMS[packageManager].install} testplane @testplane/globals @testplane/testing-library @swc/core ${pluginsPackages}`, registry, ), { diff --git a/src/utils/index.ts b/src/utils/index.ts index 5876322..01b4bac 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -185,7 +185,7 @@ export const extendWithTypescript = async (packageNamesToInstall: string[], appP const defaultTestplaneTsConfig = _.set( {}, ["compilerOptions", "types"], - ["testplane", "@testplane/testing-library"], + ["@testplane/globals", "@testplane/testing-library"], ); await fsUtils.writeJson(testplaneTsConfigPath, defaultTestplaneTsConfig); From 676e6c165f22fa41bd76a47514d12f39f4f47e7a Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Mon, 6 Jul 2026 17:32:54 +0300 Subject: [PATCH 3/3] fix: test example --- __fixtures/config/jsConfig.js | 4 ++++ __fixtures/config/withEverything.js | 4 ++++ src/constants/defaultTestplaneConfig.ts | 5 +++++ src/utils/index.ts | 4 ++-- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/__fixtures/config/jsConfig.js b/__fixtures/config/jsConfig.js index 72af675..0e28a34 100644 --- a/__fixtures/config/jsConfig.js +++ b/__fixtures/config/jsConfig.js @@ -17,6 +17,10 @@ module.exports = { ] } }, + windowSize: { + width: 1920, + height: 1080 + }, browsers: { chrome: { headless: true, diff --git a/__fixtures/config/withEverything.js b/__fixtures/config/withEverything.js index 4c56d99..3680685 100644 --- a/__fixtures/config/withEverything.js +++ b/__fixtures/config/withEverything.js @@ -22,6 +22,10 @@ export default { ] } }, + windowSize: { + width: 1920, + height: 1080 + }, browsers: { chrome: { headless: true, diff --git a/src/constants/defaultTestplaneConfig.ts b/src/constants/defaultTestplaneConfig.ts index d8f2b9a..803af45 100644 --- a/src/constants/defaultTestplaneConfig.ts +++ b/src/constants/defaultTestplaneConfig.ts @@ -18,6 +18,11 @@ const defaultTestplaneConfig: TestplaneConfig = { }, }, + windowSize: { + width: 1920, + height: 1080, + }, + browsers: { chrome: { headless: true, diff --git a/src/utils/index.ts b/src/utils/index.ts index 01b4bac..530ff4a 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -120,8 +120,8 @@ describe("test examples", () => { await fileSearchInput.waitForDisplayed(); await fileSearchInput.setValue("config"); - // Find by id - const fileSearchResults = await browser.$("#docsearch-list"); + // Find by selector + const fileSearchResults = await browser.$("ul[aria-labelledby='docsearch-label']"); // Find by role const fileSearchResultsItems = await fileSearchResults.findAllByRole("option");