Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed Jan 10, 2023
1 parent 34852cb commit a64bc75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install
run: yarn --prefer-offline --frozen-lockfile
- name: Tests
run: 'xvfb-run --auto-servernum --server-args="-screen 0, 1920x1080x24" yarn run test:${{matrix.automation}}:${{ matrix.mm-version }} --timeout 50000'
run: 'yarn run test:${{matrix.automation}}:${{ matrix.mm-version }} --timeout 50000'
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
3 changes: 2 additions & 1 deletion src/setup/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export async function launchPlaywright(
browser = await (
await import("playwright")
).chromium.launchPersistentContext(tmpdir, {
headless: false,
headless: true,
args: [
`--disable-extensions-except=${metamaskPath}`,
`--load-extension=${metamaskPath}`,
...(options.playwrightOptions?.args || []),
`--headless=chrome`,
],
...(options.playwrightOptions ?? {}),
});
Expand Down
3 changes: 2 additions & 1 deletion src/setup/puppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ export async function launchPuppeteer(
const pBrowser = await (
await import("puppeteer")
).default.launch({
headless: false,
headless: true,
args: [
`--disable-extensions-except=${metamaskPath}`,
`--load-extension=${metamaskPath}`,
...(options.puppeteerOptions?.args || []),
`--headless=chrome`,
],
...(options.puppeteerOptions ?? {}),
});
Expand Down

0 comments on commit a64bc75

Please sign in to comment.