Skip to content

Commit

Permalink
Increasing t
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Apr 30, 2024
1 parent 298dd11 commit 803d78d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 25 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

docker-push-roomservice:
name: Push room service Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wiq_es05c/roomservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: roomservice
buildargs: REACT_APP_API_URI
env: # Esta línea estaba mal indentada
REACT_APP_API_URI: http://${{ secrets.DEPLOY_HOST }}:3000


e2e-tests:
needs: [unit-tests]
Expand All @@ -75,6 +56,7 @@ jobs:
env :
CI : ""


docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions webapp/e2e/steps/basicButtons-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ defineFeature(feature, test => {
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 40000 })

await page
.goto("http://localhost:3000/addUser", {
Expand Down
1 change: 1 addition & 0 deletions webapp/e2e/steps/dailyQuestionMode-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defineFeature(feature, test => {
: await puppeteer.launch({ headless: false, slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 40000 })

await page
.goto("http://localhost:3000/addUser", {
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/gameBasicMode-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defineFeature(feature, test => {
: await puppeteer.launch({ headless: false, slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
//setDefaultOptions({ timeout: 10000 }) ONLY USE IF MORE TIME THAN DEFAULT IS REQUIRED
setDefaultOptions({ timeout: 40000 })

await page
.goto("http://localhost:3000/addUser", {
Expand Down
3 changes: 2 additions & 1 deletion webapp/e2e/steps/login-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ defineFeature(feature, test => {
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 50 });
page = await browser.newPage();

//Way of setting up the timeout
setDefaultOptions({ timeout: 40000 })

await page
.goto("http://localhost:3000/login", {
Expand Down
5 changes: 3 additions & 2 deletions webapp/e2e/steps/multiplayerMode-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ defineFeature(feature, test => {
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
pageHost = await browserHost.newPage();

//Way of setting up the timeout
setDefaultOptions({ timeout: 40000 })

browserUser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
pageUser = await browserUser.newPage();
//Way of setting up the timeout

setDefaultOptions({ timeout: 40000 })

await pageHost
.goto("http://localhost:3000/addUser", {
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defineFeature(feature, test => {
: await puppeteer.launch({ headless: false, slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 10000 })
setDefaultOptions({ timeout: 40000 })

await page
.goto("http://localhost:3000/login", {
Expand Down

0 comments on commit 803d78d

Please sign in to comment.