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" },