-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 5.7.0
Create a new site, complete the setup wizard, and select USD as the store currency and LA, USA as the store address.
npm run wp option update wcpay_fraud_protection_settings_active 1
- Navigate to the WCPay Overview page: /wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview.
- Inspect the banner. It should look like this:
- Click the 'Learn more' button. You should be directed to the WCPay settings screen. Once the components finish loading, you should see the screen smoothly scroll down to the Fraud Protection section.
- Go back to the WCPay Overview page: /wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview.
- Click 'Remind me later'. The banner should disappear.
- The patch sets the reminder timestamp to one minute in the future. So quickly click the Deposits link just below the Overview link in the left sidebar. Once the Deposits screen loads, click back to the Overview screen. The banner should not appear. Now click back to the 9. 10. Deposits screen and wait until the minute has fully elapsed.
- After 3 days has passed, click the Overview link in the sidebar. The banner should appear.
- Once you visit the Overview screen after clicking the 'Remind me later' button three times, the banner should appear, but this time it should include a 'Don't show me this again' button. The banner should look like this:
- Click the 'Don't show me this again' button. The banner should disappear. Now click around to different admin screens and the Overview screen periodically for the next minute. You should not see the banner render on the Overview screen any more.
Delete the banner's option from the database: npm run wp option delete wcpay_frt_discover_banner_settings
Visit your site on mobile and log into the admin.
Navigate to the WCPay Overview page: /wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview.
Inspect the banner. It should look something like this:
- Click the 'Learn more' button. You should be directed to the WCPay settings screen. Once the components finish loading, you should see the screen smoothly scroll down to the Fraud Protection section.
- Go back to the WCPay Overview page: /wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview.
- Click 'Remind me later'. The banner should disappear.
- The patch sets the remindMeAt timestamp to one minute in the future. So quickly click the Deposits link just below the Overview link in the left sidebar. Once the Deposits screen loads, click back to the Overview screen. The banner should not appear. Now click back to the Deposits screen and wait until the minute has fully elapsed.
- After 3 days has passed, click the Overview link in the sidebar. The banner should appear.
- Repeat steps 5 through 7, two more times.
- Once you visit the Overview screen after clicking the 'Remind me later' button three times, the banner should appear, but this time it should include a 'Don't show me this again' button. The banner should look like this:
- Click the 'Don't show me this again' button. The banner should disappear. Now click around to different admin screens and the Overview screen periodically for the next minute. You should not see the banner render on the Overview screen any more.
- Go to Payments > Settings
- The welcome tour should pop up
- Go through the tour steps and finish it – or click on the close button
- Refresh the page – it shouldn't pop up again
- Check the welcome tour flag by running
npm run wp option get wcpay_fraud_protection_welcome_tour_dismissed
– it should return 1 - If you want to test it again, run the following command:
npm run wp option update wcpay_fraud_protection_welcome_tour_dismissed 0
- Refresh the page – the tour should pop up again.
Login into the admin of your site and visit the WCPay settings screen: /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments
The fraud protection section should now be rendered below the deposits section.
Check that there are no errors in the browser console. Check the text and layout in the fraud protection section looks fine. Click the question mark icon beside each option under the payment risk level to ensure that the correct modal displays. Ensure that modals close when clicking 'Got it' button, 'X' close button, and clicking outside of the modal.
Navigate to the WooCommerce general settings page and change you currency to a currency other than USD.
Navigate back to the WCPay settings page and open each fraud protection modal by clicking on the question mark symbol '?'. The rule referencing $1,000.00 should now show a slightly modified text mentioning the equivalent of $1,000.00 in $store_currency.
Tunnel your local client site to reach it via the public internet.
Visit your client site on your smartphone and login as the administrator.
Navigate to the WCPay settings screen and scroll to the bottom of the page.
Evaluate the section on mobile:
- Check the text and layout for issues.
- Click the question mark icon beside each option to ensure the correct modal displays.
- Ensure that modals close when clicking 'Got it' button and the 'X' close button.
- Go to WCPay Settings, and you should see the Fraud Protection section at the bottom of the page (before the advance link).
- Check if the section contains the "Advanced" checkbox, with the description matching the Figma design.
- Check if the "Configure" button is only enabled when the advanced protection level is selected.
- Check if the "Configure" button when clicked sends you to the Advanced protection settings page.
- Check if the design of Advanced protection settings matches with the Figma design (Don't bother about the container width's and text breaking on different parts, because that's designed for different screen sizes).
- Check if enabling/disabling some settings are saved when you click the "Save Changes" button, and not immediately saved by changing the values.
- Check the save isn't triggered when there are some validation errors on forms containing extra fields, such as "Order velocity", "Purchase price threshold" and "Order item count" rules. The warnings will display a yellow box, and the errors will display a red box at the top of the page.
-
Perform some payments that should be blocked or put on hold by the rule engine
-
Go to Payments > Transactions
-
You should see 4 tabs: "Transactions", "Uncaptured", "Risk review", and "Blocked"
-
Explore both "Risk review" and "Blocked" tabs
- You can tweak the per_page query param in order to trick the pagination
- It is possible to search by order id and customer name
- Try to sort columns
- Click on the download button
- Make sure the pagination works
-
Test Cancel Confirmation Modal
-
Place an order.
-
On the admin dashboard 'Edit Order' screen, select "Cancelled" from the Order Status dropdown
-
A confirmation modal should be displayed with the option to "Do Nothing" or "Cancel Order", which warns the merchant that Cancel order will not refund the customer.
-
On click of Do Nothing, the order status dropdown is reset back to its previous status, on click of Cancel Order, it is retained as Cancelled.
-
If the order does not have any amount to be refunded (not successfully placed/ already refunded), the modal should not be displayed.
-
Regression testing of Refund Confirmation Modal
- When user clicks on Refund, the refund Confirmation Modal should be displayed as before and user can Cancel or choose to Refund the order before changing status to Refund
- If the order is already refunded, show an error. (styling of error message is changed)