From 803b29b2d9e18beb1194c023fa5b44d62bf67ad1 Mon Sep 17 00:00:00 2001 From: Christian Frichot Date: Thu, 19 Dec 2019 01:12:44 +0800 Subject: [PATCH] UI update headless chrome flags to fix 'yarn run test:oss' (#8035) * UI update headless chrome flags to fix ember/chrome crash in test * UI update references from test-oss to test:oss * UI removed disable-gpu flag from headless Chrome * UI and also remove the comment --- Makefile | 2 +- ui/README.md | 4 ++-- ui/testem.js | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 09fc9e700..d09244f83 100644 --- a/Makefile +++ b/Makefile @@ -150,7 +150,7 @@ test-ember: @echo "--> Installing JavaScript assets" @cd ui && yarn --ignore-optional @echo "--> Running ember tests" - @cd ui && yarn run test-oss + @cd ui && yarn run test:oss ember-ci-test: # Deprecated, to be removed soon. @echo "ember-ci-test is deprecated in favour of test-ui-browserstack" diff --git a/ui/README.md b/ui/README.md index 9bcbfee1a..c4e1d8352 100644 --- a/ui/README.md +++ b/ui/README.md @@ -72,8 +72,8 @@ Running tests will spin up a Vault dev server on port 9200 via a pretest script that testem (the test runner) executes. All of the acceptance tests then run, proxing requests back to that server. -- `yarn run test-oss` -- `yarn run test-oss -s` to keep the test server running after the initial run. +- `yarn run test:oss` +- `yarn run test:oss -s` to keep the test server running after the initial run. - `yarn run test -f="policies"` to filter the tests that are run. `-f` gets passed into [QUnit's `filter` config](https://api.qunitjs.com/config/QUnit.config#qunitconfigfilter-string--default-undefined) - `yarn run test:browserstack` to run the kv acceptance tests in Browserstack diff --git a/ui/testem.js b/ui/testem.js index fff07eb97..493925765 100644 --- a/ui/testem.js +++ b/ui/testem.js @@ -10,7 +10,6 @@ const config = { // --no-sandbox is needed when running Chrome inside a container process.env.CI ? '--no-sandbox' : null, '--headless', - '--disable-gpu', '--disable-software-rasterizer', '--mute-audio', '--remote-debugging-port=0',