Skip to content

chore: Dev to main#750

Merged
Roopan-Microsoft merged 9 commits intomainfrom
dev
Mar 2, 2026
Merged

chore: Dev to main#750
Roopan-Microsoft merged 9 commits intomainfrom
dev

Conversation

@NirajC-Microsoft
Copy link
Contributor

Purpose

This pull request introduces a new end-to-end testing framework for the project using Playwright and pytest. It adds comprehensive configuration, utilities, and documentation to support automated browser-based testing, including enhanced logging, reporting, and test data management. Additionally, there are minor improvements to backend logging and settings handling.

End-to-End Test Framework Introduction:

  • Added a full Playwright-based E2E test suite under tests/e2e-test/, including base page objects (base/base.py), configuration constants (config/constants.py), shared utilities for logging and summaries (tests/test_utils.py), and a pytest configuration file (pytest.ini). [1] [2] [3] [4]
  • Implemented a custom pytest conftest.py for login/logout session management, enhanced HTML reporting with screenshots and step-by-step details, and post-run report column renaming.
  • Added a .gitignore to exclude Python environment, build, and test artifacts from version control in the E2E test directory.
  • Provided documentation (README.md) for setup, running tests, and environment configuration, along with a sample dotenv file for credentials. [1] [2]
  • Included a requirements.txt listing all necessary dependencies for running the E2E tests.

Backend Improvements:

  • Suppressed verbose Azure HTTP logging in app.py by setting its log level to WARNING.
  • Updated settings in settings.py to explicitly set protected_namespaces to an empty tuple in the _AIFoundrySettings class.

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

CHAT_HISTORY = "(//div[@style='padding: 8px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; background-color: transparent; border: 1px solid transparent; border-radius: 6px; margin-left: -8px; margin-right: -8px; transition: background-color 0.15s, border-color 0.15s; opacity: 1; pointer-events: auto;'])[1]"
MORE_OPTIONS = "(//button[@style='min-width: 24px; height: 24px; padding: 2px; color: var(--colorNeutralForeground3);'])[2]"
MORE_OPTIONS_DELETE = "(//button[@style='min-width: 24px; height: 24px; padding: 2px; color: var(--colorNeutralForeground3);'])[3]"
RENAME_OPTION = "//span[normalize-space()='Rename']"
@@ -0,0 +1,1625 @@
"""Home page object module for Fabric SQL automation tests."""
import logging
import json

from PIL import Image
from base.base import BasePage
from config.constants import HELLO_PROMPT, GOOD_MORNING_PROMPT, RAI_PROMPT, OUT_OF_SCOPE_PROMPT
Comment on lines +201 to +207
# def pytest_runtest_makereport(item, call):
# outcome = yield
# report = outcome.get_result()
# report.description = str(item.function.__doc__)
# os.makedirs("logs", exist_ok=True)
# extra = getattr(report, "extra", [])
# report.extra = extra
@Roopan-Microsoft Roopan-Microsoft merged commit 89a28a0 into main Mar 2, 2026
19 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

🎉 This PR is included in version 2.2.3 🎉

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.

5 participants