-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Justas Vaitkus
authored and
Justas Vaitkus
committed
Jul 12, 2024
1 parent
80d9877
commit 1aee6fc
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 }} | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
}) | ||
|