Enable local testing in Edge (#382)

This commit is contained in:
lpardosixtosMs 2024-02-28 10:41:23 -08:00 committed by GitHub
parent 82e0a46283
commit 899c11317d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -24,7 +24,8 @@
"format": "npm run pretty:fix ; npm run lint:fix",
"test:chrome": "BROWSER=chrome node tests/run.mjs",
"test:firefox": "BROWSER=firefox node tests/run.mjs",
"test:safari": "BROWSER=safari node tests/run.mjs"
"test:safari": "BROWSER=safari node tests/run.mjs",
"test:edge": "BROWSER=edge node tests/run.mjs"
},
"devDependencies": {
"@babel/core": "^7.21.3",

View file

@ -57,8 +57,12 @@ switch (BROWSER) {
capabilities = Capabilities.chrome();
break;
}
case "edge": {
capabilities = Capabilities.edge();
break;
}
default: {
printHelp(`Invalid browser "${BROWSER}", choices are: "safari", "firefox", "chrome"`);
printHelp(`Invalid browser "${BROWSER}", choices are: "safari", "firefox", "chrome", "edge"`);
}
}