Skip to content

Commit

Permalink
chore: fix puppeteer error
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed Oct 14, 2024
1 parent 76ee0a0 commit 471dba7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ jobs:
env:
GH_API_KEY: ${{ secrets.GH_API_KEY }}
GITHUB_BRANCH: ${{ github.ref_name }}
- name: install puppeteer libraries
run: |
sudo apt-get update
apt-get install chromium-browser
sudo apt-get install libgbm1 gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- name: install additional packages for tests
run: yarn add [email protected] axios jest
- name: start react app
Expand Down
11 changes: 10 additions & 1 deletion src/__tests__/validate-links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ describe('Check for broken links', () => {
let page;

beforeAll(async () => {
browser = await puppeteer.launch({ headless: 'false' });
browser = await puppeteer.launch({
headless: 'false',

args: [
'--disable-gpu',
'--disable-setuid-sandbox',
'--no-sandbox',
'--no-zygote',
],
});
page = await browser.newPage();
});

Expand Down

0 comments on commit 471dba7

Please sign in to comment.