hyperswitch
hyperswitch copied to clipboard
🧪(test): Verify Payment Operations test cases
This commit adds a new test case for the Payment Operations page. The test verifies the presence of default elements on the page, such as the search box, time range dropdown, filter options, and buttons. The test ensures that the page is functioning correctly and displays the expected elements.
Refactor commands.js
This commit refactors the commands.js file by adding new custom commands. The new commands include getByTestId, clickOnElementWithText, and navigateFromSideMenu. These commands enhance the readability and reusability of the test code by providing convenient shortcuts for common actions.
Type of Change
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
resolves https://github.com/juspay/hyperswitch/issues/6133
Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
How did you test it?
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