Skip to content

Commit

Permalink
headless + args
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster committed Sep 10, 2024
1 parent 2102768 commit 645d079
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/compatibility_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,9 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-serial-dev
sudo apt-get install chromium-browser
- name: Install dependencies (MacOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install --cask chromium
brew install hdf5
run: brew install hdf5
- name: Install cellxgene from `main` branch
if: matrix.cellxgene_build == 'main'
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/push_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: |
brew install --cask chromium
pip install setuptools
make pydist install-dist
- name: Smoke tests (without annotations feature)
Expand Down
14 changes: 9 additions & 5 deletions client/jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
const ENV_DEFAULT = require("../environment.default.json");

const jestEnv = process.env.JEST_ENV || ENV_DEFAULT.JEST_ENV;
const isHeadful =
process.env.HEADFUL === "true" || process.env.HEADLESS === "false";
// const isHeadful =
// process.env.HEADFUL === "true" || process.env.HEADLESS === "false";

const DEFAULT_LAUNCH_CONFIG = {
headless: !isHeadful,
args: ["--ignore-certificate-errors", "--ignore-ssl-errors"],
headless: true,
args: [
"--ignore-certificate-errors",
"--ignore-ssl-errors",
"--no-sandbox",
"--disable-setuid-sandbox",
],
ignoreHTTPSErrors: true,
defaultViewport: {
width: 1280,
Expand All @@ -26,7 +31,6 @@ const LAUNCH_CONFIG_BY_ENV = {
headless: true,
slowMo: 100,
devtools: true,
executablePath: "/opt/homebrew/bin/chromium",
defaultViewport: {
width: DEFAULT_LAUNCH_CONFIG.defaultViewport.width,
height: DEFAULT_LAUNCH_CONFIG.defaultViewport.height + 560,
Expand Down

0 comments on commit 645d079

Please sign in to comment.