Skip to content

Commit

Permalink
fix: self signed things
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 1, 2024
1 parent 615a201 commit c4a3bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/login_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit c4a3bf2

Please sign in to comment.