Skip to content
Merged
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
4 changes: 4 additions & 0 deletions __fixtures/config/jsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module.exports = {
]
}
},
windowSize: {
width: 1920,
height: 1080
},
browsers: {
chrome: {
headless: true,
Expand Down
4 changes: 4 additions & 0 deletions __fixtures/config/withEverything.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export default {
]
}
},
windowSize: {
width: 1920,
height: 1080
},
browsers: {
chrome: {
headless: true,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
"yargs": "^17.7.2"
},
"engines": {
"node": ">=18.19.0"
"node": ">= 22"
}
Comment on lines 72 to 74

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matches testplane major version
Installing latest testplane(v9) on node18 (which is not supported) makes no sense

}
5 changes: 5 additions & 0 deletions src/constants/defaultTestplaneConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const defaultTestplaneConfig: TestplaneConfig = {
},
},

windowSize: {
width: 1920,
height: 1080,
},

browsers: {
chrome: {
headless: true,
Expand Down
2 changes: 1 addition & 1 deletion src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const installPackages = async (
return new Promise<string>((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,
),
{
Expand Down
6 changes: 3 additions & 3 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down
Loading