Skip to content

Commit

Permalink
trying more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TallanGroberg committed Dec 1, 2023
1 parent d8dad2a commit 14a894e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,20 @@ jobs:
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-


- name: Install Dependencies
run: npm i
if: steps.npm-cache.outputs.cache-hit != 'true'
run: |
npm i
npm run build --if-present
env:
CI: true

- name: Setup Puppeteer Chrome
uses: MauFournier/[email protected]

- name: Run end to end tests
run: npm run test-e2e
run: |
xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' npm run test-e2e
env:
CI: true
22 changes: 22 additions & 0 deletions puppeteer.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
launch: {
headless: process.env.CI === "true",
ignoreDefaultArgs: ["--disable-extensions"],
args: ["--no-sandbox"],
executablePath: "chrome.exe"
}
};

module.exports = {
launch: {},
server: {
command: "npm run serve",
port: 9000,
launchTimeout: 180000
}
};

module.exports = {
preset: "jest-puppeteer"
// The rest of your file...
};

0 comments on commit 14a894e

Please sign in to comment.