Add testing action

This commit is contained in:
Ajay Ramachandran
2021-10-02 17:42:47 -04:00
parent 8605e23fbb
commit 0e147134f3
6 changed files with 2076 additions and 198 deletions

View File

@@ -3,7 +3,15 @@ import * as Chrome from "selenium-webdriver/chrome";
import * as Path from "path";
test("Selenium Chrome test", async () => {
const driver = await setup();
let driver;
try {
driver = await setup();
} catch (e) {
console.warn("A browser is probably not installed, skipping selenium tests");
console.warn(e);
return;
}
try {
await waitForInstall(driver);