diff --git a/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/package.json b/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/package.json index ee8922f9..a5b8093f 100644 --- a/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/package.json +++ b/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/package.json @@ -6,6 +6,7 @@ "start": "ng serve", "build": "ng build && npm run copyCSS && npm run copyAssets", "test": "ng test", + "test-ci": "ng test --no-watch --no-progress --browsers=ChromeHeadlessCI", "lint": "ng lint", "e2e": "ng e2e", "copyCSS": "cp ./projects/kubeflow/src/kubeflow.css ./dist/kubeflow && cp ./projects/kubeflow/src/styles.scss ./dist/kubeflow && cp ./projects/kubeflow/src/lib/variables.scss ./dist/kubeflow/lib", diff --git a/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/projects/kubeflow/karma.conf.js b/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/projects/kubeflow/karma.conf.js index 8d3a70ba..6e0b24c3 100644 --- a/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/projects/kubeflow/karma.conf.js +++ b/notebooks/crud-web-apps/common/frontend/kubeflow-common-lib/projects/kubeflow/karma.conf.js @@ -26,6 +26,12 @@ module.exports = function(config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], + customLaunchers: { + ChromeHeadlessCI: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'], + }, + }, singleRun: false, restartOnFileChange: true, });