Monday, December 16, 2024
3 changes
1 change
Code cleanup and technical improvements
The subscription app's automated tests were reorganized into smaller, clearer groups without changing how the product works. This helps developers maintain the subscription area more efficiently and reduces future risk when making changes.
Original PR description
The TestSubscription class from test_sale_subscription.py was too large (~4000 LOC), so the code has been refactored to improve maintainability and readability. The test cases have been divided into more focused classes: - testSubscriptionInvoice: For invoice-related test cases. - testSubscriptionUpsell: For upsell-related test cases. - testSubscriptionRenew: For renewal-related test cases. - testSubscriptionInvoiceSignature: Moved to a new file for signature-related invoicing tests. This refactor ensures better organization and ease of understanding without changing the test logic.
2 changes
Code cleanup and technical improvements
Automated guided checks now wait 300ms instead of 400ms between default checks, helping test runs complete faster. This reduces runbot execution time without changing customer-facing business features.
Original PR description
By default, the checkdelay is 400ms when it is not stipulated in a tour. For performance reasons (runbot time), we reduce this delay to 300ms. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Colombian e-invoicing checkout test automation was updated to use newer testing helpers instead of older jQuery-based code. This is an internal cleanup that helps keep tests easier to maintain without changing the customer checkout experience.
Original PR description
In this commit, we prefer to use tour helpers instead of jQuery.