From cd2a58a76dc53df091c6df2ef5d5fecba8d2568c Mon Sep 17 00:00:00 2001 From: jadera Date: Wed, 10 Dec 2025 20:04:40 +0200 Subject: [PATCH] testcafe testing --- .gitlab-ci.yml | 5 +++-- package.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c072701..9179d31 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,11 +67,12 @@ build: - .next/cache/ test:e2e: - image: circleci/node:16-browsers + image: cimg/node:20.18-browsers needs: ["install", "build"] stage: test script: - - npm run testcafe + - npm ci + - npm run testcafe:ci artifacts: paths: - e2e-screenshots diff --git a/package.json b/package.json index 8382bd3..334fd9a 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "test:unit": "jest --coverage", "test": "npm run testcafe", "testcafe": "testcafe --config-file testcafe.json", + "testcafe:ci": "testcafe chrome:headless --config-file testcafe.json", "build-analyze": "ANALYZE=true npm run build", "prepare": "husky install" },