Skip to content

Commit

Permalink
add executablePath
Browse files Browse the repository at this point in the history
  • Loading branch information
rainandbare committed Sep 10, 2024
1 parent c9ed023 commit b0f00e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/compatibility_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ jobs:
run: make unit-test-server
- name: Smoke Tests
run: make smoke-test
env:
DEBUG: puppeteer:* # Enable Puppeteer debug logs
# FIXME: Fails intermittently. See https://app.zenhub.com/workspaces/single-cell-5e2a191dad828d52cc78b028/issues/chanzuckerberg/cellxgene/2415
# - name: Smoke Tests with Annotations
# run: make smoke-test-annotations
3 changes: 2 additions & 1 deletion client/jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* and `page` objects
*/

const puppeteer = require("puppeteer");
const ENV_DEFAULT = require("../environment.default.json");

const jestEnv = process.env.JEST_ENV || ENV_DEFAULT.JEST_ENV;
Expand All @@ -14,6 +15,7 @@ const DEFAULT_LAUNCH_CONFIG = {
headless: !isHeadful,
args: ["--ignore-certificate-errors", "--ignore-ssl-errors"],
ignoreHTTPSErrors: true,
executablePath: puppeteer.executablePath(),
defaultViewport: {
width: 1280,
height: 960,
Expand Down Expand Up @@ -43,5 +45,4 @@ const launchConfig = LAUNCH_CONFIG_BY_ENV[jestEnv] || DEFAULT_LAUNCH_CONFIG;
module.exports = {
browserContext: "incognito",
launch: launchConfig,
testTimeout: 100000,
};

0 comments on commit b0f00e2

Please sign in to comment.