Skip to content

test: Update xpath locators & fix pipeline#952

Merged
Avijit-Microsoft merged 5 commits into
dev-v4from
macae-smoke-auto
Apr 23, 2026
Merged

test: Update xpath locators & fix pipeline#952
Avijit-Microsoft merged 5 commits into
dev-v4from
macae-smoke-auto

Conversation

@Ritesh-Microsoft

Copy link
Copy Markdown
Contributor

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:

  • Updated the selectors for SEND_BUTTON and SEND_BUTTON_CLARIFICATION in HomePage.py to use a more stable XPath that matches buttons by partial class name, reducing brittleness from exact class matches. [1] [2]
  • Improved AI "thinking process" handling in multiple validation methods (e.g., 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:

  • Enhanced approve_product_marketing_task_plan to 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:

  • Improved test log stream management in conftest.py by saving the handler, stream, and original node ID using id(item) for more reliable retrieval, even if the test node ID changes during execution.
  • Updated documentation in README.md to reflect the new project name ("MACAE Accelerator").
  • ...

Does this introduce a breaking change?

  • Yes
  • [X ] No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@Avijit-Microsoft Avijit-Microsoft merged commit 9755ee6 into dev-v4 Apr 23, 2026
27 of 28 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Roopan-Microsoft Roopan-Microsoft deleted the macae-smoke-auto branch May 21, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants