Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Justas Vaitkus authored and Justas Vaitkus committed Jul 12, 2024
1 parent 80d9877 commit 1aee6fc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/saferpayCheckouting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ jobs:
strategy:
fail-fast: false
matrix:
containers: [1]
include:
- prestashop: 'PS1786'
make: 'make e2eh1786'
subdomain: 'sp1786'
port: '8002'
yml: 'docker-compose.8.yml'
url: 'https://sp1786.eu.ngrok.io'
test_spec: 'cypress/e2e/**'
steps:
- name: Checkouting
uses: actions/[email protected]
Expand Down Expand Up @@ -45,18 +52,18 @@ jobs:
- name: Installing NPM, NPX packages
run: npm ci & npx browserslist@latest --update-db

- name: PS1786 installing / Module Install and Uninstall testing...
- name: ${{ matrix.prestashop }} installing / Module Install and Uninstall testing...
run: |
make e2eh1786
${{ matrix.make }}
- name: Cypress E2E Tests
- name: Running ${{ matrix.prestashop }} Cypress E2E tests
uses: cypress-io/github-action@v6
with:
record: true
parallel: true
group: 'SaferpayTests'
spec: cypress/e2e/moduleConfig.cy.js
spec: ${{ matrix.test_spec }}
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Cypress.Commands.add(
cy.get('#passwd').type('prestashop_demo',{delay: 0, log: false})
cy.get('#submit_login').click().wait(1000).as('Connection successsful')
cy.visit('/en/my-account')
cy.get('#login-form [name="email"]').eq(0).type('[email protected]')
cy.get('#login-form [name="password"]').eq(0).type('123456789')
cy.get('#login-form [name="email"]').eq(0).type((Cypress.env('SAFERPAY_EMAIL')),{delay: 0, log: false})
cy.get('#login-form [name="password"]').eq(0).type((Cypress.env('SAFERPAY_PASSWORD')),{delay: 0, log: false})
cy.get('#login-form [type="submit"]').eq(0).click({force:true})
cy.get('#history-link > .link-item').click()
})
Expand Down

0 comments on commit 1aee6fc

Please sign in to comment.