BCApps
BCApps copied to clipboard
[Bug]: First use of FeatureManagement.IsEnabled() method require COMMIT even if feature key is disabled
Describe the issue
If you run FeatureManagement.IsEnabled on fresh database, new Feature Key Update Data record will be automatically created. As there is not COMMIT after that, running tests on fresh database for the features using feature keys may raise an error about transaction and test will fail. This is important when we run tests for both old and new implementations of something, managed by feature key.
Expected behavior
This change should fix this issue and let tests runs normally if new feature is still disabled.
Steps to reproduce
Run tests for Exchange Rate Adjustment on fresh database, without opening page Feature Management.
Additional context
None