hyperswitch
hyperswitch copied to clipboard
refactor(cypress): get amount from connector fixture in captureCallTest
Type of Change
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
Removed amount_to_capture
parameter from captureCallTest
.
The amount is now taken from connector specific fixtures.
Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
Some connectors have a limit to the amount they support. So instead of one hardcoded value for each connector we need a connector specific amount.
How did you test it?
npm run cypress:payments
✔ All specs passed! 07:07 396 383 - 13 -
Checklist
- [ ] I formatted the code
cargo +nightly fmt --all
- [ ] I addressed lints thrown by
cargo clippy
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible