diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1458c5176bd5a89b4e101a61b7593cafde228be3..10b77143b3f924deb1ecbf44e37eb4750708abf3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -111,6 +111,9 @@ e2e-test:
   # dependencies:
   #   - frontend-test
   script:
+    - apt-get update
+    - apt-get install -y default-jre
+    - apt-get install chromium -y
     - npm run e2e
 # sonar-analyze:
 #   stage: analyze
diff --git a/src/test/javascript/protractor.conf.js b/src/test/javascript/protractor.conf.js
index fa56a92412ab2e8970ae5235194b8f97193cb8c2..b34b4e3ee123e506bcc0837dd51fed51e4d63354 100644
--- a/src/test/javascript/protractor.conf.js
+++ b/src/test/javascript/protractor.conf.js
@@ -12,7 +12,7 @@ exports.config = {
     browserName: 'chrome',
     chromeOptions: {
       args: process.env.JHI_E2E_HEADLESS
-        ? ['--headless', '--disable-gpu', '--window-size=1920,1080', '--start-maximized']
+        ? ['--headless', '--disable-gpu', '--window-size=1920,1080', '--start-maximized', '--no-sandbox']
         : ['--disable-gpu', '--window-size=800,600'],
     },
   },