Skip to content

Release testing instructions for WC Payments 5.7.0

Dwain Maralack edited this page Mar 22, 2023 · 22 revisions

Test Fraud and Risk tools

1. Create site

Create a new site, complete the setup wizard, and select USD as the store currency and LA, USA as the store address.

2. Enable the fraud protection feature by running

npm run wp option update wcpay_fraud_protection_settings_active 1

3. Discoverability banner view (Release only, will be removed when moved over)

  1. Navigate to the WCPay Overview page: /wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview.
  2. Inspect the banner. It should look like this:
  3. 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.
  4. Go back to the WCPay Overview page: /wp-admin/admin.php?page=wc-admin&path=%2Fpayments%2Foverview.
  5. Click 'Remind me later'. The banner should disappear.
  6. 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.
  7. After one minute has passed, click the Overview link in the sidebar. The banner should appear.
  8. Repeat steps 5 through 7, two more times.
  9. 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:

  1. 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.

4. Fraud tools welcome tour (Release only, will be removed when moved over)

On Payments > Settings Check if the tour modal should appear with: “Enhanced fraud protection as title”.

You should be able to navigate through it by clicking next and watch the modals popup next to the items it describes.

At the end click on “Got it”. This should hide the popup and only show you the settings screen.

After clicking “Got It”, relaoding the page should not show the modal gain.

You can close the modal by pressing the "X" button or clicking on the "Got it" button at the end

Repeat the above steps on a mobile device, ensuring no obvious issues with the flow.

5. Main feature setting panel

Login into the admin of your site and visit the WCPay settings screen: /wp-admin/admin.php?page=wc-settings&tab=checkout&section=woocommerce_payments

The fraud protection section should now be rendered below the deposits section. Screenshot 2023-03-22 at 07 50 35

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.

Currency changes are reflected

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.

Check the section on mobile.

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.

x. Advanced section

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.

Clone this wiki locally