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/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" } } 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/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..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"); @@ -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);