diff --git a/frontend-js/package.json b/frontend-js/package.json
index ea8d17aca1e2d3745d0c6c67e0cd5c8b5a7a3d81..29db5bf5da4e6c6b4ccd49e114ad8bf47fcf75bb 100644
--- a/frontend-js/package.json
+++ b/frontend-js/package.json
@@ -13,7 +13,7 @@
     "deploy": "node scripts/deploy.js",
     "refresh-mock-requests": "node scripts/refresh_mock_requests.js",
     "lint": "jshint src/.",
-    "test": "istanbul cover node_modules/mocha/bin/_mocha -- --recursive src/test/js"
+    "test": "istanbul cover node_modules/mocha/bin/_mocha -- --recursive src/test/js --retries 4"
   },
   "author": "Piotr Gawron",
   "devDependencies": {
diff --git a/frontend-js/src/test/js/mocha-config.js b/frontend-js/src/test/js/mocha-config.js
index 13ebe85b3ed6047b4476e682a6c377fdd28f2c2e..c4bc6e3a92b212f3c54ab8511b16afd9c774fdd9 100644
--- a/frontend-js/src/test/js/mocha-config.js
+++ b/frontend-js/src/test/js/mocha-config.js
@@ -196,11 +196,10 @@ before(function () {
 
   mockBootstrap();
 
-  // Retry all tests in this suite up to 4 times
-  this.retries(4);
 });
 
 beforeEach(function () {
+
   window.onresize = undefined;
 
   logger.flushBuffer();