diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e521930346ea5e20f8b07b64077d4b49e66af90d..604674a5af9bbea3af373ea3a81689eae2d4c951 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,29 +4,30 @@ stages:
 variables:
   npm_config_cache: "$CI_PROJECT_DIR/.npm"
   CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
-    
-cache: 
+
+# https://gitlab.com/help/ci/caching/index.md
+cache:
   key: ${CI_COMMIT_REF_SLUG}
-  paths: 
+  paths:
     - .npm
-    - cache/Cypress 
+    - cache/Cypress
     - node_modules
-    
+
 test:
   image: cypress/base:10
   stage: test
   script:
     # install dependencies
     - npm ci
-    
+
     # Kjør express-serveren i bakgrunnen
     - npm start &
-    
-    # Kjør testene
+
+    # run Cypress tests
     - npm test
-    artifacts:
-      when: always
-      paths:
-        - cypress/videos
-        - cypress/screenshots
-      expire_in: 1 day
\ No newline at end of file
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos
+      - cypress/screenshots
+    expire_in: 1 week