-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #775 from Adyen/release/22.2.2
Release/22.2.2
- Loading branch information
Showing
198 changed files
with
8,530 additions
and
19,035 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: E2E For SiteGenesis | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "int_adyen_SFRA/**" | ||
|
||
jobs: | ||
setup-the-cartridge: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- sfra-version: "" | ||
sfcc-hostname-secret: "SFCC_HOSTNAME_SFRA5" | ||
code-version-secret: "SFCC_CODE_VERSION_SFRA5" | ||
steps: | ||
- name: Checkout SFRA code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: SalesforceCommerceCloud/storefront-reference-architecture | ||
ref: ${{ matrix.sfra-version }} | ||
ssh-key: ${{ secrets.SERVICE_ACCOUNT_SSH_KEY }} | ||
path: storefront-reference-architecture | ||
- name: setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: adyen-salesforce-commerce-cloud | ||
- name: npm install storefront-reference-architecture | ||
working-directory: storefront-reference-architecture | ||
run: npm install | ||
- name: npm install adyen-salesforce-commerce-cloud | ||
working-directory: adyen-salesforce-commerce-cloud | ||
run: npm install | ||
- name: create dw.json file | ||
working-directory: adyen-salesforce-commerce-cloud | ||
run: | | ||
echo '{ | ||
"username": "${{ secrets.SFCC_USERNAME }}", | ||
"password": "${{ secrets.SFCC_PASSWORD }}", | ||
"hostname": "${{ secrets[matrix.sfcc-hostname-secret] }}", | ||
"code-version": "${{ secrets[matrix.code-version-secret] }}" | ||
}' >> dw.json | ||
- name: push cartridge code | ||
working-directory: adyen-salesforce-commerce-cloud | ||
run: npm run build | ||
end-to-end-testing: | ||
needs: setup-the-cartridge | ||
runs-on: | ||
group: larger-runners | ||
labels: ubuntu-latest-8-cores | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- sfra-version: "" | ||
sfcc-hostname-secret: "SFCC_STOREFRONT_URL_SFRA5" | ||
code-version-secret: "SFCC_CODE_VERSION_SFRA5" | ||
steps: | ||
- name: setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: adyen-salesforce-commerce-cloud | ||
- name: install e2e test dependencies | ||
working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ | ||
run: npm i | ||
- name: setup playwright dependencies | ||
working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ | ||
run: npx playwright install --with-deps | ||
- name: run e2e tests full coverage | ||
working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ | ||
if: github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'develop' | ||
run: npm run test:ci | ||
env: | ||
SANDBOX_HTTP_AUTH_USERNAME: ${{ secrets.SANDBOX_HTTP_AUTH_USERNAME }} | ||
SANDBOX_HTTP_AUTH_PASSWORD: ${{ secrets.SANDBOX_HTTP_AUTH_PASSWORD }} | ||
PAYPAL_USERNAME: ${{ secrets.PAYPAL_USERNAME }} | ||
PAYPAL_PASSWORD: ${{ secrets.PAYPAL_PASSWORD }} | ||
SFRA_VERSION: ${{ matrix.sfra-version }} | ||
SFCC_HOSTNAME: ${{ secrets[matrix.sfcc-hostname-secret] }} | ||
- name: run e2e tests quick coverage | ||
working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ | ||
if: github.event.pull_request.base.ref != 'main' && github.event.pull_request.base.ref != 'develop' | ||
run: npm run test:ci:quick | ||
env: | ||
SANDBOX_HTTP_AUTH_USERNAME: ${{ secrets.SANDBOX_HTTP_AUTH_USERNAME }} | ||
SANDBOX_HTTP_AUTH_PASSWORD: ${{ secrets.SANDBOX_HTTP_AUTH_PASSWORD }} | ||
PAYPAL_USERNAME: ${{ secrets.PAYPAL_USERNAME }} | ||
PAYPAL_PASSWORD: ${{ secrets.PAYPAL_PASSWORD }} | ||
SFRA_VERSION: ${{ matrix.sfra-version }} | ||
SFCC_HOSTNAME: ${{ secrets[matrix.sfcc-hostname-secret] }} | ||
- name: Archive test result artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: html-report | ||
path: adyen-salesforce-commerce-cloud/tests/playwright/test-report |
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
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
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
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
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
4 changes: 2 additions & 2 deletions
4
...A/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/helpers.test.js.snap
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Helpers should make payment ajax call that fails 1`] = ` | ||
Object { | ||
"data": Object {}, | ||
{ | ||
"data": {}, | ||
"paymentMethod": "mocked_paymentMethod", | ||
} | ||
`; |
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
Oops, something went wrong.