aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-10-02 17:42:47 -0400
committerAjay Ramachandran <[email protected]>2021-10-02 17:42:47 -0400
commit0e147134f3435d842fea9f695f0a6bf113ce8b17 (patch)
treeff41fa9e30b91a646c3f4fcea6378b30eeb1a05f /test
parent8605e23fbbe1215b9bc54a0e714c6ade11cf6c22 (diff)
downloadSponsorBlock-0e147134f3435d842fea9f695f0a6bf113ce8b17.tar.gz
SponsorBlock-0e147134f3435d842fea9f695f0a6bf113ce8b17.zip
Add testing action
Diffstat (limited to 'test')
-rw-r--r--test/selenium.test.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/selenium.test.ts b/test/selenium.test.ts
index a50e62f1..0e334f62 100644
--- a/test/selenium.test.ts
+++ b/test/selenium.test.ts
@@ -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);