From c4a3bf275ba294ec2abfb59d23fb562a71d7bbb2 Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 1 May 2024 15:25:16 +0200 Subject: [PATCH] fix: self signed things --- .github/workflows/e2e.yml | 2 -- webapp/e2e/steps/login_positive.steps.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 1d2266bd..3ea29fa1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -14,7 +14,6 @@ jobs: with: node-version: 20 - run: sudo apt install -y openssl - - run: sudo apt install -y curl - run: openssl req -newkey rsa:2048 -nodes -keyout server.key -out server.csr -subj "/CN=localhost" - run: openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt - run: openssl pkcs12 -export -out server.p12 -inkey server.key -in server.crt -passout pass:${{ secrets.E2E_SSL_PASSWORD }} -name tomcat @@ -32,7 +31,6 @@ jobs: - run: cat ./webapp/.env - run: docker compose -f ./webapp/e2e/docker-compose.yml up -d - run: npm --prefix webapp install - - run: curl --location 'https://localhost:8443/questions?page=10' - run: docker ps -a - run: docker logs api-defaultASW - run: npm --prefix webapp run build diff --git a/webapp/e2e/steps/login_positive.steps.js b/webapp/e2e/steps/login_positive.steps.js index ae16b1e1..39847b43 100644 --- a/webapp/e2e/steps/login_positive.steps.js +++ b/webapp/e2e/steps/login_positive.steps.js @@ -10,8 +10,8 @@ defineFeature(feature, test => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() - : await puppeteer.launch({ headless: false, slowMo: 100 }); + ? await puppeteer.launch({ ignoreHTTPSErrors: true}) + : await puppeteer.launch({ headless: false, slowMo: 100, ignoreHTTPSErrors: true }); page = await browser.newPage(); //Way of setting up the timeout setDefaultOptions({ timeout: 10000 })