test: Update xpath locators & fix pipeline#952
Merged
Conversation
fix: Dev v4 to main merge
test: Update branch
test: Update Python dependencies and GitHub Actions with multiple upgrades
Avijit-Microsoft
approved these changes
Apr 23, 2026
|
🎉 This PR is included in version 4.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request improves the reliability and maintainability of the end-to-end test codebase, especially around UI element selection and AI response validation. The most significant changes include making selector logic more robust, enhancing the handling of AI-generated clarifications, and improving test logging infrastructure.
Selector robustness and test reliability:
SEND_BUTTONandSEND_BUTTON_CLARIFICATIONinHomePage.pyto use a more stable XPath that matches buttons by partial class name, reducing brittleness from exact class matches. [1] [2]validate_product_marketing_response,validate_hr_response) by reducing wait times, using shorter timeouts, and handling persistent UI elements more gracefully. This prevents unnecessary test delays and failures when the AI status indicator remains in the DOM. [1] [2] [3] [4] [5]Test flow enhancements:
approve_product_marketing_task_planto detect and respond to additional clarification requests from the UI, automatically submitting "Not applicable" and handling subsequent plan processing. This better simulates real user interaction and improves test coverage for multi-step flows.Logging and documentation:
conftest.pyby saving the handler, stream, and original node ID usingid(item)for more reliable retrieval, even if the test node ID changes during execution.README.mdto reflect the new project name ("MACAE Accelerator").Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information