Some V1 integration test cases fail sporadically, even when the swap flow completes successfully according to the desired behaviour. These failures are mainly related to how balances are verified during test execution.
Causes :
1-)Balance verification is performed via a common/shared function with overloaded assertions covering multiple balance values, making it hard to determine which test or condition caused a failure.
2-)Fee workflow diagrams and related data are not up-to data with latest swap data.
Approach to fix:
1-)Update the fee workflow diagram using the generated swap report and align balance verification logic in test cases with this updated workflow.
2-)Move balance verification into individual test cases instead of relying on shared verification logic in test_framework/mod.rs, so each test validates only its own expected balances.