- I can see card information and available balance.
- I can tap on the hide button to hide the number and CVV of the Card.
- I can see a menu list.
- I can tap on the Weekly spending limit to set the limit of spending. If there is no limit the switch button will be disabled. Otherwise, this button will be enabled when there is a limit that has been set.
- If the weekly spending limit doesn't set, I can tap on the button then navigate to the Spending Limit screen.
- I can tap on the suggestion list under the input field.
- I can manually type a number into the input field.
- The button will be disabled if there is no number inputted. Otherwise, I can submit to set spending limit, after setting the spending limit successfully the screen will navigate back to Debit Card, then I can see spending and limit number under card box, and the switch button will be enabled.
First at all: clone project and install package with yarn
Open your favorite Terminal and run these commands.
git clone https://github.com/phivh/debitcard.git debitcard
cd debitcard && yarn
yarn start
Run to android in another terminal.
Create local.properties file in android folder with this template, replace USER_NAME by computer username.
- sdk.dir=/Users/<USER_NAME>/Library/Android/sdk
Then run:
- yarn android
Run to ios in another terminal
- yarn ios
Run to ios with "iPhone 11" in another terminal
- yarn ip11
Run test all unit test
- yarn test
iOS | Android |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- Card spending limit validation
Thanks & cheers!