Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

129 pruebas de aceptación #138

Merged
merged 14 commits into from
May 1, 2024
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
node-version: 20
- run: npm --prefix users/authservice install
- run: npm --prefix users/userservice install
- run: npm --prefix gameservice install
- run: npm --prefix storeQuestionService install
- run: npm --prefix userStatsService install
- run: npm --prefix gatewayservice install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
node-version: 20
- run: npm --prefix users/authservice install
- run: npm --prefix users/userservice install
- run: npm --prefix gameservice install
- run: npm --prefix storeQuestionService install
- run: npm --prefix userStatsService install
- run: npm --prefix gatewayservice install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
Expand Down
3,689 changes: 3,687 additions & 2 deletions gatewayservice/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gatewayservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"axios": "^1.6.5",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-prom-bundle": "^7.0.0",
"express-openapi": "^12.1.3",
"express-prom-bundle": "^7.0.0",
"swagger-ui-express": "^5.0.0",
"yaml": "^2.4.1"
},
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sonar.language=js
sonar.projectName=wiq_es6c

sonar.coverage.exclusions=**/*.test.js
sonar.sources=webapp,users/authservice,users/userservice,gatewayservice,storeQuestionService,userStatsService,apisgatewayservice,gameservice,questionsservice/questiongeneratorservice,questionsservice/wikidataExtractor
sonar.sources=webapp/src,users/authservice,users/userservice,gatewayservice,storeQuestionService,userStatsService,apisgatewayservice,gameservice,questionsservice/questiongeneratorservice,questionsservice/wikidataExtractor
sonar.sourceEncoding=UTF-8
sonar.exclusions=node_modules/**
sonar.javascript.lcov.reportPaths=**/coverage/lcov.info
4,411 changes: 4,409 additions & 2 deletions users/authservice/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions users/authservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"bcrypt": "^5.1.1",
"body-parser": "^1.20.2",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.0.4",
"express-openapi": "^12.1.3",
"express-prom-bundle": "^7.0.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.0.4",
"swagger-ui-express": "^5.0.0",
"yaml": "^2.4.1"
},
Expand Down
6 changes: 6 additions & 0 deletions webapp/e2e/features/checkHistory.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Checking history

Scenario: The user checks its history
Given A logged user
When I go to History section
Then games with questions and answers are shown
6 changes: 6 additions & 0 deletions webapp/e2e/features/login-form.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Login with an existing user

Scenario: The user is registered in the site
Given A registered user
When I fill the data in the form and press submit
Then Menu screen is displayed
6 changes: 6 additions & 0 deletions webapp/e2e/features/playCalculator.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Playing calculator game with default settings

Scenario: The user plays a game with default settings
Given A logged user
When I press play button
Then questions with 4 answers are displayed till time finishes
6 changes: 6 additions & 0 deletions webapp/e2e/features/playGame.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Playing classic game with default settings

Scenario: The user plays a game with default settings
Given A logged user
When I play with configured settings(2 questions 2 answers)
Then 2 questions with 2 answers are asked
2 changes: 1 addition & 1 deletion webapp/e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
testMatch: ["**/steps/*.js"],
testTimeout: 30000,
testTimeout: 40000,
setupFilesAfterEnv: ["expect-puppeteer"]
}
Loading