Skip to content

Conversation

@Roopan-Microsoft
Copy link
Collaborator

@Roopan-Microsoft Roopan-Microsoft commented Oct 27, 2025

Purpose

  • This pull request refactors the end-to-end test suite for the MACAE-v3 application, focusing on improving test maintainability, clarity, and robustness. The main changes include consolidating the multi-team workflow test into a single, step-driven test function, updating test data and constants for HR scenarios, and removing the now-obsolete BIAB.py page object in favor of a new implementation. Additionally, the HTML report title is updated to reflect the new test version.

Test Workflow Refactor and Consolidation

  • The multi-team workflow is now implemented as a single, step-wise test function (test_retail_customer_success_workflow) in test_MACAE_GP.py, replacing the previous parameterized prompt-based test cases. This new test covers the golden path for Retail, Product Marketing, and Human Resources teams, with detailed logging and retry logic for increased reliability.

Test Data and Constants Update

  • HR-related test data in constants.py is updated: new variables for HR start and orientation dates are added, and the employee details string is replaced with a more comprehensive hr_clarification_text. Logic for handling environment variables is also made more robust.

Page Object Model Changes

  • The obsolete BIAB.py page object is removed, and references are updated to use the new implementation from HomePage.py, aligning with the refactored workflow and test structure. [1] [2]

Reporting Improvements

  • The HTML report title for pytest is updated to "Test Automation MACAE-v3 GP" for clearer identification of the test suite version.

If you have questions about the new workflow, the retry logic, or how to add new team scenarios, let me know!

Does this introduce a breaking change?

  • Yes
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants