From c76d074e512d29718b58b7139b8d1b6fb6c8bbeb Mon Sep 17 00:00:00 2001
From: Jovana Petkovic <jovanape@stud.ntnu.no>
Date: Tue, 9 May 2023 13:08:19 +0200
Subject: [PATCH] Tweaking settings

---
 .gitlab-ci.yml | 18 +++---------------
 cypress.json   |  2 +-
 2 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 96cdaa3..ec5cc25 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,25 +1,13 @@
 stages:
   - test
 
-cache:
-  key: ${CI_COMMIT_REF_SLUG}
-  paths:
-    - node_modules/
-    - .npm/
-
 test:
-  image: cypress/browsers:node16.16.0-chrome107-ff107-edge
+  image: node:latest
   stage: test
   script:
     # install dependencies
     - npm ci
     # start the server in the background
-    - npm run start:ci &
+    - npm start
     # run Cypress tests
-    - npx cypress run --browser firefox
-  artifacts:
-    when: always
-    paths:
-      - cypress/videos/**/*.mp4
-      - cypress/screenshots/**/*.png
-    expire_in: 1 day
\ No newline at end of file
+    - npm test
\ No newline at end of file
diff --git a/cypress.json b/cypress.json
index 85300af..680907c 100644
--- a/cypress.json
+++ b/cypress.json
@@ -1,4 +1,4 @@
 {
-	"baseUrl": "http://localhost:3000",
+	"baseUrl": "http://localhost:8080",
 	"testFiles": "**/*.feature"
 } 
-- 
GitLab