diff --git a/libs/Dockerfile b/libs/Dockerfile index c10edc3b2..05f9edd50 100644 --- a/libs/Dockerfile +++ b/libs/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* - # Install official PhantomJS release +# Install official PhantomJS release RUN set -x \ && apt-get update \ && apt-get install -y --no-install-recommends \ @@ -22,4 +22,12 @@ RUN set -x \ && apt-get clean all \ && rm -rf /tmp/* /var/lib/apt/lists/* -RUN phantomjs --version \ No newline at end of file +RUN phantomjs --version + +# Install Google Chrome +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - + +RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' + +RUN apt-get update + && apt-get install -y google-chrome-stable \ No newline at end of file diff --git a/src/Squidex/app-config/karma.coverage.conf.js b/src/Squidex/app-config/karma.coverage.conf.js index 20ff2b024..6ee5490b3 100644 --- a/src/Squidex/app-config/karma.coverage.conf.js +++ b/src/Squidex/app-config/karma.coverage.conf.js @@ -65,12 +65,20 @@ module.exports = function (config) { */ singleRun: true, + customLaunchers: { + ChromeCustom: { + base: 'ChromeHeadless', + // We must disable the Chrome sandbox (Chrome's sandbox needs more permissions than Docker allows by default) + flags: ['--no-sandbox'] + } + }, + /** * Run with chrome because phantom js does not provide all types, e.g. DragEvent * * available browser launchers: https://npmjs.org/browse/keyword/karma-launcher */ - browsers: ['ChromeHeadless'] + browsers: ['ChromeCustom'] }; config.set(_config); diff --git a/src/Squidex/app/features/content/shared/assets-editor.component.html b/src/Squidex/app/features/content/shared/assets-editor.component.html index 5b5cc809c..d47333225 100644 --- a/src/Squidex/app/features/content/shared/assets-editor.component.html +++ b/src/Squidex/app/features/content/shared/assets-editor.component.html @@ -1,7 +1,7 @@