Skip to content

Commit

Permalink
Prueba
Browse files Browse the repository at this point in the history
  • Loading branch information
uo276026 committed Apr 30, 2024
1 parent 8668d3b commit c9d49f2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 83 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- LaraFMz
- Pablo-Arreglos
- jota
- Larafm5
pull_request:
types: [opened, synchronize, reopened]
jobs:
Expand All @@ -27,6 +28,7 @@ jobs:
- run: npm --prefix gatewayservice test -- --coverage
- run: npm --prefix questionservice test -- --coverage
- run: npm --prefix webapp test -- --coverage
- run: npm --prefix webapp run test:e2e
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# e2e-tests:
# needs: [unit-tests]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# - run: npm --prefix userservice/authservice install
# - run: npm --prefix userservice/userservice install
# - run: npm --prefix gatewayservice install
# - run: npm --prefix questionservice install
# - run: npm --prefix webapp install
# - run: npm --prefix webapp run build
# - run: npm --prefix webapp run test:e2e
e2e-tests:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix userservice/authservice install
- run: npm --prefix userservice/userservice install
- run: npm --prefix gatewayservice install
- run: npm --prefix questionservice install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# needs: [e2e-tests]
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
Expand All @@ -68,7 +68,7 @@ jobs:
permissions:
contents: read
packages: write
# needs: [e2e-tests]
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
Expand All @@ -85,7 +85,7 @@ jobs:
permissions:
contents: read
packages: write
# needs: [e2e-tests]
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
Expand All @@ -102,7 +102,7 @@ jobs:
permissions:
contents: read
packages: write
# needs: [e2e-tests]
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Update OpenAPI configuration
Expand All @@ -123,7 +123,7 @@ jobs:
permissions:
contents: read
packages: write
# needs: [e2e-tests]
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
Expand Down
6 changes: 0 additions & 6 deletions webapp/e2e/features/home.feature

This file was deleted.

6 changes: 6 additions & 0 deletions webapp/e2e/steps/02-login.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ defineFeature(feature, test => {
given('A user that is logged in the application', async () => {
username = "[email protected]"
password = "pabloasw1"
await expect(page).toClick("button", { text: "REGÍSTRATE" });
await expect(page).toFill('input[name="username"]', username);
await expect(page).toFill('input[name="password"]', password);
await expect(page).toClick('button', { text: 'Crear' })
await expect(page).toClick('a[href="/"]', { text: 'WIQ 5A' });
await page.waitForNavigation();
await expect(page).toClick("button", { text: "INICIA SESIÓN" });
});

Expand Down
57 changes: 0 additions & 57 deletions webapp/e2e/steps/03-home.steps.js

This file was deleted.

0 comments on commit c9d49f2

Please sign in to comment.