From 3647a5091c0fc67ec1f754ea85a8bdf0dec9f00e Mon Sep 17 00:00:00 2001 From: RenanCardoso Date: Fri, 18 Oct 2024 14:25:22 -0300 Subject: [PATCH] updates CI workflow --- .github/workflows/ci.yml | 24 +++++++++++++++++------- cypress/e2e/gui/login.cy.js | 2 +- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d8cb1a..f2c0b5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,22 @@ -name: End-to-end tests +name: Artifacts on: push jobs: cypress-run: runs-on: ubuntu-22.04 + name: Artifacts steps: - - name: Checkout - uses: actions/checkout@v4 - # Install npm dependencies, cache them correctly - # and run all Cypress tests - - name: Cypress run - uses: cypress-io/github-action@v6 \ No newline at end of file + - uses: actions/checkout@v4 + - uses: cypress-io/github-action@v6 + # after the test run completes store videos and any screenshots + - uses: actions/upload-artifact@v4 + # add the line below to store screenshots only on failures + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` + - uses: actions/upload-artifact@v4 + with: + name: cypress-videos + path: cypress/videos + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` \ No newline at end of file diff --git a/cypress/e2e/gui/login.cy.js b/cypress/e2e/gui/login.cy.js index 1493711..e4d1f59 100644 --- a/cypress/e2e/gui/login.cy.js +++ b/cypress/e2e/gui/login.cy.js @@ -15,7 +15,7 @@ describe('Login', () => { cy.get('#textName').siblings() .should('contain.text', 'bem vindo ao BugBank :)') // Verificar se estou na home - cy.url().should('be.equal', `${Cypress.config('baseUrl')}/home`) + cy.url().should('be.equal', `${Cypress.config('baseUrl')}/homeaa`) }) it('realizar login com usuário que não existe', () => {