From 2e8792ca42413df5e9fb686387c6a1e7f755bc7d Mon Sep 17 00:00:00 2001 From: Yulong Wang Date: Wed, 8 Sep 2021 11:52:41 -0700 Subject: [PATCH] [js/web] fix karma launch with chrome headless (#8998) --- js/web/karma.conf.js | 2 +- tools/ci_build/github/azure-pipelines/win-wasm-ci-pipeline.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/web/karma.conf.js b/js/web/karma.conf.js index c2d81bf4d3..faf9efe5bf 100644 --- a/js/web/karma.conf.js +++ b/js/web/karma.conf.js @@ -77,7 +77,7 @@ module.exports = function (config) { browserSocketTimeout: 60000, hostname: getMachineIpAddress(), customLaunchers: { - ChromeTest: { base: 'Chrome', flags: ['--window-size=1,1', '--enable-features=SharedArrayBuffer'] }, + ChromeTest: { base: 'ChromeHeadless', flags: ['--window-size=1,1', '--enable-features=SharedArrayBuffer'] }, ChromeDebug: { debug: true, base: 'Chrome', flags: ['--remote-debugging-port=9333', '--enable-features=SharedArrayBuffer'] }, // diff --git a/tools/ci_build/github/azure-pipelines/win-wasm-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-wasm-ci-pipeline.yml index e10396b2da..aa6ba8afeb 100644 --- a/tools/ci_build/github/azure-pipelines/win-wasm-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-wasm-ci-pipeline.yml @@ -219,7 +219,7 @@ jobs: workingDirectory: '$(Build.SourcesDirectory)\js\web' displayName: 'Run ort-web tests - unpacked mode' - script: | - npm test -- --webgl-texture-pack-mode -b=webgl + npm test -- --webgl-texture-pack-mode -b=webgl workingDirectory: '$(Build.SourcesDirectory)\js\web' displayName: 'Run ort-web tests - packed mode' - script: |