diff options
author | Ajay Ramachandran <[email protected]> | 2022-06-17 17:12:05 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-17 17:12:05 -0400 |
commit | bbc5b436e04a0a955569def124c5fde756b25adb (patch) | |
tree | 1c8cd4c8d29fe6fe84176ec624d08b114fc5719f | |
parent | 74e9a98afd0d83be1bd01017335a647bc0d03412 (diff) | |
parent | 91311787df63c63a526bcdf9d4169c2e7debee65 (diff) | |
download | SponsorBlock-bbc5b436e04a0a955569def124c5fde756b25adb.tar.gz SponsorBlock-bbc5b436e04a0a955569def124c5fde756b25adb.zip |
Merge pull request #1365 from ajayyy/auto-selenium
Run Selenium tests in GitHub actions
-rw-r--r-- | .github/workflows/tests.yml | 10 | ||||
-rw-r--r-- | test/selenium.test.ts | 1 |
2 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d58501ab..5a87e1ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,8 +3,7 @@ name: Tests on: [push, pull_request] jobs: - - build: + test: name: Run tests runs-on: ubuntu-latest @@ -15,6 +14,9 @@ jobs: with: node-version: '18' - run: npm ci - + - run: sudo apt-get install chromium-chromedriver + + - name: Copy configuration + run: cp config.json.example config.json - name: Run tests - run: npm run test-without-building
\ No newline at end of file + run: npm run test
\ No newline at end of file diff --git a/test/selenium.test.ts b/test/selenium.test.ts index 0e334f62..025b777e 100644 --- a/test/selenium.test.ts +++ b/test/selenium.test.ts @@ -37,6 +37,7 @@ async function setup(): Promise<WebDriver> { options.addArguments("--load-extension=" + Path.join(__dirname, "../dist/")); options.addArguments("--mute-audio"); options.addArguments("--disable-features=PreloadMediaEngagementData, MediaEngagementBypassAutoplayPolicies"); + options.addArguments("--headless=chrome"); const driver = await new Builder().forBrowser("chrome").setChromeOptions(options).build(); driver.manage().setTimeouts({ |