mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-05-11 18:36:15 +02:00
Run headless
This commit is contained in:
parent
74e9a98afd
commit
91311787df
2 changed files with 7 additions and 4 deletions
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
run: npm run test
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue