Skip to content

Commit 899c113

Browse files
Enable local testing in Edge (#382)
1 parent 82e0a46 commit 899c113

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"format": "npm run pretty:fix ; npm run lint:fix",
2525
"test:chrome": "BROWSER=chrome node tests/run.mjs",
2626
"test:firefox": "BROWSER=firefox node tests/run.mjs",
27-
"test:safari": "BROWSER=safari node tests/run.mjs"
27+
"test:safari": "BROWSER=safari node tests/run.mjs",
28+
"test:edge": "BROWSER=edge node tests/run.mjs"
2829
},
2930
"devDependencies": {
3031
"@babel/core": "^7.21.3",

tests/run.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ switch (BROWSER) {
5757
capabilities = Capabilities.chrome();
5858
break;
5959
}
60+
case "edge": {
61+
capabilities = Capabilities.edge();
62+
break;
63+
}
6064
default: {
61-
printHelp(`Invalid browser "${BROWSER}", choices are: "safari", "firefox", "chrome"`);
65+
printHelp(`Invalid browser "${BROWSER}", choices are: "safari", "firefox", "chrome", "edge"`);
6266
}
6367
}
6468

0 commit comments

Comments
 (0)