Skip to content

Conversation

@Vemarthula-Microsoft
Copy link
Contributor

Purpose

This pull request introduces several improvements and new features to the end-to-end testing framework, focusing on enhanced element targeting, dialog handling, file upload capabilities, and better failure diagnostics through automated screenshot capture. The changes primarily affect the DkmPage page object and the test configuration in conftest.py.

Page object improvements and new features

  • Improved targeting of UI elements by updating locators for ASK_QUESTION and SEND_BUTTON to use more specific XPath selectors, reducing ambiguity when multiple elements are present. [1] [2]
  • Added new locators and methods to support document upload, file input, clearing filters, and time-based filtering, enabling more comprehensive test coverage for document-related features. [1] [2]
  • Implemented robust dialog/modal handling with the new close_dialog_if_open() utility method, which is now called before key actions to ensure tests do not fail due to unexpected overlays. [1] [2] [3] [4]

File upload and UI state verification

  • Added methods for single and multiple file uploads (upload_file, upload_multiple_files), as well as utilities for clearing filters and verifying send button enabled/disabled state, increasing test reliability and flexibility.

Test diagnostics and reporting

  • Enhanced test diagnostics by capturing screenshots automatically on test failures. Screenshots are saved with a timestamp and linked directly in the HTML report, greatly improving debugging and traceability. [1] [2]

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@Avijit-Microsoft Avijit-Microsoft changed the title feat: Implemented Smoke test cases automation - Test Automation - Automate UI Smoke test cases test: Implemented Smoke test cases automation - Test Automation - Automate UI Smoke test cases Jan 2, 2026
@Avijit-Microsoft Avijit-Microsoft merged commit bbbd812 into dev Jan 2, 2026
3 checks passed
@Priyanka-Microsoft Priyanka-Microsoft deleted the ve-DkmSMtest branch January 5, 2026 15:17
@github-actions
Copy link

🎉 This PR is included in version 1.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants