Automattic / woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
https://wordpress.org/plugins/woocommerce-payments/
Other
174 stars 69 forks source link

E2E test suite `shopper-bnpls-checkout` fails due to missing selector when changing currency. #8354

Closed Jinksi closed 7 months ago

Jinksi commented 8 months ago

Describe the bug

The e2e test suite in file shopper-bnpls-checkout.spec.js is failing due to a missing selector when attempting to change the shopper account currency.

https://github.com/Automattic/woocommerce-payments/blob/bb876e12d97b1bc07fa10f1e51b1ffd42f5f5c09/tests/e2e/specs/wcpay/shopper/shopper-bnpls-checkout.spec.js#L36-L39

Which calls the function changeAccountCurrencyTo: https://github.com/Automattic/woocommerce-payments/blob/bb876e12d97b1bc07fa10f1e51b1ffd42f5f5c09/tests/e2e/utils/flows.js#L167

To Reproduce

  1. Observe PR GH checks targeting develop E2E Tests - Pull Request / WC - latest | wcpay - shopper, example.
    • Alternatively, run locally with the command npm run test:e2e -- tests/e2e/specs/wcpay/shopper/shopper-bnpls-checkout.spec.js.
    • Also failing for server e2e tests (example)
  2. Notice the above test failing due to No node found for selector: #wcpay_selected_currency
FangedParakeet commented 7 months ago

Please add your planning poker estimate with Zenhub @timur27