kunwardeep/test-api

[Field account_number] - In correct error message when account number is 21 characters long and bank country code is CN

Opened this issue · 0 comments

Testing Endpoint - http://preview.airwallex.com:30001
request - POST
Account number range when country code is CN is 8 to 20 characters. The error message is wrong when the account number is more than 21

JSON payload

{ 
 payment_method: 'LOCAL',
 bank_country_code: 'CN',
 account_name: 'John Smith',
 account_number: '012345678901234567890'
}

Result

+ expected - actual

  {
 -  "error": "Length of account_number should be between 7 and 11 when bank_country_code is 'US'"
 +  "error": "Length of account_number should be between 8 and 20 when bank_country_code is 'CN'"
  }

To reproduce run test -

Save Bank Details with account_number field
  And bank country code - CN
    And invalid length