Skip to content

Commit

Permalink
updates CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanCardoso committed Oct 18, 2024
1 parent bfcbc66 commit 3647a50
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
- 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`
2 changes: 1 addition & 1 deletion cypress/e2e/gui/login.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 3647a50

Please sign in to comment.