-
Notifications
You must be signed in to change notification settings - Fork 69
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
Showing
181 changed files
with
6,485 additions
and
1,354 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Run Tests' | ||
description: 'Runs Playwright E2E tests' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: First Run Playwright E2E Tests | ||
id: first_run_e2e_pw_tests | ||
# Use +e to trap errors when running E2E tests. | ||
shell: /bin/bash +e {0} | ||
run: npm run test:e2e-pw-ci | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 7 |
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,74 @@ | ||
name: E2E Playwright Tests - Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- trunk | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
wcpay-use-build-artifact: | ||
type: boolean | ||
required: false | ||
default: false | ||
repo-branch: | ||
type: string | ||
required: false | ||
description: 'Branch to be used for running tests' | ||
|
||
env: | ||
E2E_GH_TOKEN: ${{ secrets.E2E_GH_TOKEN }} | ||
WCP_DEV_TOOLS_REPO: ${{ secrets.WCP_DEV_TOOLS_REPO }} | ||
WCP_DEV_TOOLS_BRANCH: 'trunk' | ||
WCP_SERVER_REPO: ${{ secrets.WCP_SERVER_REPO }} | ||
WC_SUBSCRIPTIONS_REPO: ${{ secrets.WC_SUBSCRIPTIONS_REPO }} | ||
E2E_BLOG_ID: ${{ secrets.E2E_BLOG_ID }} | ||
E2E_BLOG_TOKEN: ${{ secrets.E2E_BLOG_TOKEN }} | ||
E2E_USER_TOKEN: ${{ secrets.E2E_USER_TOKEN }} | ||
WC_E2E_SCREENSHOTS: 1 | ||
E2E_SLACK_CHANNEL: ${{ secrets.E2E_SLACK_CHANNEL }} | ||
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }} | ||
E2E_USE_LOCAL_SERVER: false | ||
E2E_RESULT_FILEPATH: 'tests/e2e/results.json' | ||
WCPAY_USE_BUILD_ARTIFACT: ${{ inputs.wcpay-use-build-artifact }} | ||
WCPAY_ARTIFACT_DIRECTORY: 'zipfile' | ||
NODE_ENV: 'test' | ||
FORCE_E2E_DEPS_SETUP: true | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
wcpay-e2e-tests: | ||
runs-on: ubuntu-latest | ||
|
||
name: WC - latest | ||
|
||
env: | ||
E2E_WP_VERSION: 'latest' | ||
E2E_WC_VERSION: 'latest' | ||
|
||
steps: | ||
- name: Checkout WCPay repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.repo-branch || github.ref }} | ||
|
||
- name: 'Download WooCommerce Payments build file' | ||
if: ${{ inputs.wcpay-use-build-artifact }} | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: woocommerce-payments | ||
path: ${{ env.WCPAY_ARTIFACT_DIRECTORY }} | ||
|
||
- name: Setup E2E environment | ||
uses: ./.github/actions/e2e/env-setup | ||
|
||
- name: Install Playwright | ||
shell: bash | ||
run: npx playwright install chromium | ||
|
||
- name: Run tests, upload screenshots & logs | ||
uses: ./.github/actions/e2e-pw/run-log-tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
.wc-payment-gateway-method-name-woopay-wrapper { | ||
.wc-payment-gateway-method-logo-wrapper { | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
line-height: 1; | ||
} | ||
|
||
.wc-payment-gateway-method-name-woopay-wrapper img { | ||
.wc-payment-gateway-method-logo-wrapper img { | ||
margin-right: 0.5rem; | ||
padding-top: 4px; | ||
} | ||
|
||
.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img { | ||
max-height: 30px; | ||
} |
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,11 +1,15 @@ | ||
.wc-payment-gateway-method-name-woopay-wrapper { | ||
.wc-payment-gateway-method-logo-wrapper { | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
line-height: 1; | ||
} | ||
|
||
.wc-payment-gateway-method-name-woopay-wrapper img { | ||
.wc-payment-gateway-method-logo-wrapper img { | ||
margin-left: 0.5rem; | ||
padding-top: 4px; | ||
} | ||
|
||
.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img { | ||
max-height: 30px; | ||
} |
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
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
Oops, something went wrong.