Skip to content

Commit

Permalink
install chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster committed Sep 10, 2024
1 parent d9c7950 commit 48f3bdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/push_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: |
sudo apt-get install chromium-browser
pip install flake8
pip install black
cd client
Expand Down Expand Up @@ -101,9 +102,6 @@ jobs:
run: |
pip install setuptools
make pydist install-dist
- name: Install Puppeteer Chrome revision
working-directory: ./client
run: npx puppeteer install
- name: Smoke tests (without annotations feature)
run: |
cd client && make smoke-test
Expand Down
4 changes: 4 additions & 0 deletions client/__tests__/e2e/puppeteer.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jest.retryTimes(ENV_DEFAULT.RETRY_ATTEMPTS);
beforeEach(async () => {
await jestPuppeteer.resetBrowser();

const browser = await jestPuppeteer.launch({
executablePath: "/usr/bin/chromium-browser",
});

const userAgent = await browser.userAgent();
await page.setUserAgent(`${userAgent}bot`);

Expand Down

0 comments on commit 48f3bdf

Please sign in to comment.