Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release branch for 9.0.0 #10427

Merged
merged 68 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
4405c97
update: add payment method page to honor WC rate limiter (#10270)
frosso Feb 3, 2025
b8b40ce
Set orderby to `none` for order queries where checking if order exist…
prettyboymp Feb 4, 2025
f9c8d29
Update handling for 0 feeAmount to be consistent with details page. (…
deepakpathania Feb 4, 2025
6035097
Cache get WC orders for incentives (#10231)
elazzabi Feb 4, 2025
7f39261
Fixes undefined array key warning (#10229)
FangedParakeet Feb 4, 2025
78b4854
Merge trunk v8.9.0 into develop
botwoo Feb 4, 2025
1ff074e
Add payment method logos to card label (#10005)
mdmoore Feb 4, 2025
d46e2a7
feat: add order notes to tokenized ECE on blocks checkout (#10307)
frosso Feb 5, 2025
29017ff
Remove the receipt details tab in the card readers page. (#10294)
deepakpathania Feb 6, 2025
d009cdd
GrabPay: Add settings page. (#10235)
danielmx-dev Feb 6, 2025
9442b85
Prevent potential fatal in multi-currency widget markup getter (#10291)
cesarcosta99 Feb 6, 2025
e51dffc
Pass the business name to the express checkout options (#10299)
danielmx-dev Feb 6, 2025
0758236
Disables the tokenised cart for ECE integration by default (#10322)
FangedParakeet Feb 7, 2025
ab7388e
Merge trunk v8.9.1 into develop
botwoo Feb 7, 2025
60abecc
Add handling for insufficient funds during refund processing (#10313)
deepakpathania Feb 7, 2025
00f9d2f
Update permissions settings and project names for E2E test setup (#10…
dmvrtx Feb 7, 2025
e18716b
Transactions Download functionality Improvements (#10211)
jessy-p Feb 7, 2025
fcea57b
Update E2E NPM scripts (#10276)
eduardoumpierre Feb 7, 2025
af5914b
Add WeChat Pay to settings (#10319)
mdmoore Feb 7, 2025
1d51c6f
update: tokenized ECE behavior w/ totals discrepancies (#10311)
frosso Feb 9, 2025
5ce68f2
Extract the Account Session logic from Embedded components onboarding…
mordeth Feb 10, 2025
d500655
Fix an issue with the copy test card number on Astra theme (#10309)
gpressutto5 Feb 10, 2025
801cb58
Remove card logo double border (#10344)
mdmoore Feb 10, 2025
f0b5926
Fix flakiness while creating a page with the checkout block (#10340)
eduardoumpierre Feb 10, 2025
36ae2f0
feat: add Alipay support in the settings & checkout (#10289)
frosso Feb 11, 2025
6f99121
Add the critical tag to E2E tests that are part of critical flows (#1…
eduardoumpierre Feb 11, 2025
afd2767
Update Incentives service to align logic and cache with WC core one (…
vladolaru Feb 11, 2025
f7f1b2b
fix: improved tokenized ECE compatibility with 3PD extensions (#10295)
frosso Feb 11, 2025
50aa483
Add E2E Tests for Currency Switch at Checkout (#10348)
lovo-h Feb 11, 2025
1916341
Integrate Account Management component into the Settings Page (#10287)
mordeth Feb 12, 2025
21d2c16
Update handling for PR as a country for terminal locations (#10349)
deepakpathania Feb 12, 2025
56ab77c
Remove Puppeteer references (#10352)
eduardoumpierre Feb 12, 2025
fe2d203
Download Disputes CSV from service (#10300)
shendy-a8c Feb 12, 2025
7ab95be
CSV Export - Improve the appearance and message of export notice (#10…
nagpai Feb 13, 2025
dcdc45f
Update disputes CSV download notice. (#10360)
shendy-a8c Feb 13, 2025
6d62c07
Avoid duplicates detection notice on new stores (#10357)
timur27 Feb 13, 2025
a7b4631
fix: attribute selection from PDPs with tokenized ECE (#10306)
frosso Feb 13, 2025
e792cab
Update E2E documentation for Playwright (#10354)
allie500 Feb 13, 2025
c966eeb
Implement GrabPay at Checkout (#10336)
danielmx-dev Feb 14, 2025
31dacc8
Add Slack integration to Playwright E2E (#10362)
eduardoumpierre Feb 14, 2025
93e4b14
Add Stripe embedded account notifications component on the Overview p…
oaratovskyi Feb 16, 2025
fbdc898
Improve CSV download experience for Payouts (#10346)
jessy-p Feb 17, 2025
b1baeb0
Prevents querying for stripe billing subscriptions on every page load…
mattallan Feb 18, 2025
8e8f960
Revert "Integrate Account Management component into the Settings Page…
mordeth Feb 18, 2025
9083599
Add JSON-formatted minimum amount details to Amount_Too_Small_Excepti…
mgascam Feb 18, 2025
e4cfa89
Update WooPayments account modal copy (#10341)
BurakParsAydin Feb 18, 2025
4185c09
Fix incorrect default value for advanced options in FRT (#10394)
eduardoumpierre Feb 18, 2025
235f6e2
Update copy in the Woopayments Reset account modal (#10397)
dpaun1985 Feb 18, 2025
1957d7a
Add WeChat Pay to checkout (#10381)
mdmoore Feb 18, 2025
eec6b23
Add GrabPay details to the view transaction page (#10377)
danielmx-dev Feb 18, 2025
ad9e840
Fixed Woo colors during Stripe KYC (#10316)
leonardola Feb 18, 2025
b1c8328
Add E2E tests to ensure non-admin users can log to wp-admin with no e…
allie500 Feb 18, 2025
3eca1b3
Add loader indication for Stripe notifications banner component (#10398)
oaratovskyi Feb 19, 2025
570cc98
feat: tokenized ECE flag via server-side control (#10389)
frosso Feb 19, 2025
0e656e7
feat: enable tokenized ECE by default - round 2 (#10415)
frosso Feb 20, 2025
94dd750
Fixed possible race condition on the WooPay opt-in (#10399)
leonardola Feb 20, 2025
e3648e5
Remove routing to the new payment process (#10413)
RadoslavGeorgiev Feb 21, 2025
af3a42f
Add a notice indicating that overview page needs to be reloaded after…
oaratovskyi Feb 21, 2025
b39f77e
Update the size of Woo logo on the test drive onboarding page (#10423)
oaratovskyi Feb 21, 2025
a615dd0
Merge trunk v8.9.2 into develop
botwoo Feb 21, 2025
e101a39
Handle fatal errors when subscription plugin gets deactivated due to …
zmaglica Feb 21, 2025
58a3f94
chore: remove unused strings file (#10422)
frosso Feb 21, 2025
b5c7cf9
Avoid PMME init for unavailable BNPL use-cases (#10424)
timur27 Feb 21, 2025
fd6b540
Adds WC store_id to body of woopay tracker requests (#10412)
FangedParakeet Feb 22, 2025
b5daf88
Update version and add changelog entries for release 9.0.0
github-actions[bot] Feb 23, 2025
42e194a
Create a Tracks event for tracking CSV exports of Transactions, Dispu…
nagpai Feb 24, 2025
7278db6
Fixes undefined constant WC_Install::STORE_ID_OPTION error (#10432)
FangedParakeet Feb 24, 2025
0c03941
Amend changelog entries for release 9.0.0
botwoo Feb 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"wcpaySettings": true,
"page": true,
"browser": true,
"context": true,
"jestPuppeteer": true
"context": true
},
"settings": {
"react": {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-pw/run-log-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
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
run: npm run test:e2e-ci
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/e2e/atomic-prepare-and-run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ runs:
run: |
mkdir screenshots

- name: Install Playwright
shell: bash
run: npx playwright install chromium

- name: "Run tests, upload screenshots & logs"
uses: ./.github/actions/e2e/run-log-tests
16 changes: 7 additions & 9 deletions .github/actions/e2e/run-log-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ runs:
# Use +e to trap errors when running E2E tests.
shell: /bin/bash +e {0}
run: |
npm run test:e2e -- --json --outputFile="$E2E_RESULT_FILEPATH" --NODE_ENV="$NODE_ENV"
npm run test:e2e-ci

if [[ -f "$E2E_RESULT_FILEPATH" ]]; then
E2E_NUM_FAILED_TEST_SUITES=$(cat "$E2E_RESULT_FILEPATH" | jq '.numFailedTestSuites')
E2E_NUM_FAILED_TEST_SUITES=$(cat "$E2E_RESULT_FILEPATH" | jq '.stats["unexpected"]')
echo "FIRST_RUN_FAILED_TEST_SUITES=$(echo $E2E_NUM_FAILED_TEST_SUITES)" >> $GITHUB_OUTPUT
if [[ ${E2E_NUM_FAILED_TEST_SUITES} -gt 0 ]]; then
echo "::notice::${E2E_NUM_FAILED_TEST_SUITES} test suite(s) failed in the first run but we will try (it) them again in the second run."
exit 0
fi
else
echo "FIRST_RUN_FAILED_TEST_SUITES=0" >> $GITHUB_OUTPUT
echo "::notice::${E2E_RESULT_FILEPATH} doesn't exist so results are unclear and we will not try again."
exit 1
exit 0
fi

# Retry failed E2E tests
Expand All @@ -30,18 +29,17 @@ runs:
shell: bash
# Filter failed E2E files from the result JSON file, and re-run them.
run: |
cat "$E2E_RESULT_FILEPATH" | jq '.testResults[] | select(.status == "failed") | .name' | xargs npm run test:e2e -- --NODE_ENV="$NODE_ENV"
npm run test:e2e-ci $(cat $E2E_RESULT_FILEPATH | jq -r '[.suites[] | (if has("suites") then .suites[] | .specs[] else .specs[] end) | select(.tests[].status == "unexpected") | .file] | unique | .[]')

# Archive screenshots if any
- name: Archive e2e test screenshots & logs
if: ${{ failure() }}
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: wp(${{ env.E2E_WP_VERSION }})-wc(${{ env.E2E_WC_VERSION }})-${{ env.E2E_GROUP }}-${{ env.E2E_BRANCH }}
path: |
screenshots
tests/e2e/screenshots
tests/e2e/docker/wordpress/wp-content/debug.log
playwright-report/
tests/e2e/test-results
${{ env.E2E_RESULT_FILEPATH }}
if-no-files-found: ignore
retention-days: 14
11 changes: 7 additions & 4 deletions .github/workflows/e2e-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: E2E Tests - Pull Request
on:
pull_request:
branches:
# - develop
# - trunk
- dev/10240-update-npm-scripts # [TODO] Remove this line after the branch is merged.
- develop
- trunk
workflow_dispatch:
workflow_call:
inputs:
Expand All @@ -28,7 +27,7 @@ env:
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_CHANNEL_ID: ${{ secrets.E2E_SLACK_CHANNEL_ID }}
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
E2E_USE_LOCAL_SERVER: false
E2E_RESULT_FILEPATH: 'tests/e2e/results.json'
Expand Down Expand Up @@ -75,5 +74,9 @@ jobs:
- 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/run-log-tests
4 changes: 2 additions & 2 deletions .github/workflows/e2e-pw-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:
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_CHANNEL_ID: ${{ secrets.E2E_SLACK_CHANNEL_ID }}
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
E2E_USE_LOCAL_SERVER: false
E2E_RESULT_FILEPATH: 'tests/e2e/results.json'
Expand Down Expand Up @@ -71,4 +71,4 @@ jobs:
run: npx playwright install chromium

- name: Run tests, upload screenshots & logs
uses: ./.github/actions/e2e-pw/run-log-tests
uses: ./.github/actions/e2e/run-log-tests
10 changes: 9 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
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_CHANNEL_ID: ${{ secrets.E2E_SLACK_CHANNEL_ID }}
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
E2E_USE_LOCAL_SERVER: false
E2E_RESULT_FILEPATH: 'tests/e2e/results.json'
Expand Down Expand Up @@ -64,6 +64,10 @@ jobs:
- 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/run-log-tests

Expand Down Expand Up @@ -116,5 +120,9 @@ jobs:
- 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/run-log-tests
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests-atomic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
WC_E2E_SCREENSHOTS: 1
E2E_SLACK_CHANNEL: ${{ secrets.E2E_SLACK_CHANNEL }}
E2E_SLACK_CHANNEL_ID: ${{ secrets.E2E_SLACK_CHANNEL_ID }}
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
E2E_WP_VERSION: 'nightly'
E2E_WC_VERSION: 'latest'
Expand Down
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,15 @@ local.env
# Screenshots created locally when running e2e tests
tests/e2e/screenshots

# E2E Performance test results
# E2E test results
tests/e2e/reports

# E2E Playwright
/playwright-report/
/blob-report/
tests/e2e-pw/.auth/
tests/e2e-pw/test-results/
tests/e2e-pw/playwright/.cache/
tests/e2e-pw/tests/e2e-pw/.auth/*
tests/e2e/.auth/
tests/e2e/test-results/
tests/e2e/playwright/.cache/
tests/e2e/tests/e2e/.auth/*

# Slate docs
docs/rest-api/build/*

Expand Down
9 changes: 0 additions & 9 deletions .puppeteerrc.cjs

This file was deleted.

12 changes: 12 additions & 0 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
background-image: url( '../images/cards/visa.svg' );
}

.payment-method__brand--alipay {
background-image: url( '../images/payment-methods/alipay-logo.svg' );
}

.payment-method__brand--cartes_bancaires {
background-image: url( '../images/cards/cartes_bancaires.svg' );
}
Expand Down Expand Up @@ -135,6 +139,14 @@
background-image: url( '../images/payment-methods/klarna.svg' );
}

.payment-method__brand--grabpay {
background-image: url( '../images/payment-methods/grabpay.svg' );
}

.payment-method__brand--wechat_pay {
background-image: url( '../images/payment-methods/wechat-pay.svg' );
}

.wc_gateways tr[data-gateway_id='woocommerce_payments'] .payment-method__icon {
border: 1px solid #ddd;
border-radius: 2px;
Expand Down
42 changes: 42 additions & 0 deletions assets/images/payment-method-icons/grabpay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/payment-method-icons/wechat-pay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/payment-methods/alipay-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions assets/images/payment-methods/grabpay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/payment-methods/wechat-pay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions assets/images/payment-methods/woopay.svg

This file was deleted.

Loading
Loading