From eb9fc8ec6a525c339a7fabb3ad9e5f9938a52eef Mon Sep 17 00:00:00 2001 From: sergiollende Date: Thu, 25 Apr 2024 12:51:52 +0200 Subject: [PATCH 1/4] Sonar properties changed --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 00b11ca..ef279d0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,7 +10,7 @@ sonar.host.url=https://sonarcloud.io sonar.language=js sonar.projectName=wiq_en3a -sonar.coverage.exclusions=**/*.test.js +sonar.coverage.exclusions=**/*.test.js, **/*.test.tsx sonar.sources=webapp/src/components,users,wikidataservice,gatewayservice sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/** From dc053ccfc4df1e597c2b25e6d563c56a754a5028 Mon Sep 17 00:00:00 2001 From: Alberto-Guerra Date: Thu, 25 Apr 2024 13:11:10 +0200 Subject: [PATCH 2/4] Added slowmo to a e2e test --- webapp/e2e/steps/normal-game.steps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/e2e/steps/normal-game.steps.js b/webapp/e2e/steps/normal-game.steps.js index 6380e08..9ee91f1 100644 --- a/webapp/e2e/steps/normal-game.steps.js +++ b/webapp/e2e/steps/normal-game.steps.js @@ -11,7 +11,7 @@ defineFeature(feature, test => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({slowmo: 50}) : await puppeteer.launch({ headless: false, slowMo: 40 }); page = await browser.newPage(); //Way of setting up the timeout From e3f15c2c89a3da4b569e00377624cd61713edef7 Mon Sep 17 00:00:00 2001 From: Alberto-Guerra Date: Thu, 25 Apr 2024 13:18:59 +0200 Subject: [PATCH 3/4] Fix capital --- webapp/e2e/steps/normal-game.steps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/e2e/steps/normal-game.steps.js b/webapp/e2e/steps/normal-game.steps.js index 9ee91f1..fcfcdc4 100644 --- a/webapp/e2e/steps/normal-game.steps.js +++ b/webapp/e2e/steps/normal-game.steps.js @@ -11,7 +11,7 @@ defineFeature(feature, test => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch({slowmo: 50}) + ? await puppeteer.launch({slowMo: 50}) : await puppeteer.launch({ headless: false, slowMo: 40 }); page = await browser.newPage(); //Way of setting up the timeout From d95e0b7d81c0cfa24364b4c5b85f71ed589aeca8 Mon Sep 17 00:00:00 2001 From: sergiollende Date: Thu, 25 Apr 2024 14:01:04 +0200 Subject: [PATCH 4/4] Change local url mongo --- users/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/index.js b/users/index.js index af75410..7d6358c 100644 --- a/users/index.js +++ b/users/index.js @@ -10,7 +10,7 @@ const port = process.env.PORT || 8003; // Connect to MongoDB -const mongoUri = process.env.MONGODB_URI || 'mongodb+srv://prueba:prueba@cluster0.kjzbhst.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0'; +const mongoUri = process.env.MONGODB_URI; mongoose.connect(mongoUri).then( console.log('Succesfully connected to MongoDB')