Skip to content

Conversation

@Thanusree-Microsoft
Copy link
Contributor

Purpose

Updated Deployment Guide

Does this introduce a breaking change?

  • Yes
  • No

Other Information

Added "Authenticate with Azure" point

Priyanka-Microsoft and others added 30 commits November 18, 2025 10:45
chore: merge dev into main
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
chore: Merge Dev to Main
chore: merging dev changes to main
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Deployment Guide documentation to add Azure authentication instructions for VS Code Web environment and includes extensive test automation infrastructure improvements. The changes include a new comprehensive test file with 4,225 lines covering 25+ test scenarios, enhanced test reporting with screenshot capture, and optimized CI/CD workflows.

Key Changes:

  • Added "Authenticate with Azure" step in deployment documentation for VS Code Web
  • Replaced test_gp_docgen.py with comprehensive test_st_docgen_tc.py containing 25+ test cases
  • Enhanced test reporting with automatic screenshot capture on failures
  • Optimized page object methods with reduced wait times
  • Updated CI/CD workflows with better conditional logic and notification messages

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
docs/DeploymentGuide.md Added Azure device code authentication step for VS Code Web deployment
README.md Updated VS Code Web badge URL from insiders.vscode.dev to vscode.dev
tests/e2e-test/tests/test_st_docgen_tc.py New comprehensive test file with 25+ end-to-end test scenarios (4,225 lines)
tests/e2e-test/tests/test_gp_docgen.py Removed old golden path test file (replaced by new comprehensive tests)
tests/e2e-test/tests/conftest.py Enhanced with screenshot capture on test failures and improved reporting
tests/e2e-test/pages/*.py Updated page objects with optimized wait times and new helper methods
tests/e2e-test/config/constants.py Added new test data constants for browse and generate questions
.github/workflows/*.yml Updated workflows with better conditionals and notification messages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


# Select 3 sections to remove from the initial list
sections_to_remove = []
if initial_count >= 3:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test is always true, because of this condition.

Copilot uses AI. Check for mistakes.
with check:
assert thread_count > 0, "No chat history threads found to hover over"

if thread_count > 0:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test is always true, because of this condition.

Copilot uses AI. Check for mistakes.
assert current_responses_empty == initial_responses, \
f"BUG: System accepted empty query. Response count changed from {initial_responses} to {current_responses_empty}"

if current_responses_empty == initial_responses:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test is always true, because of this condition.

Copilot uses AI. Check for mistakes.

page = login_logout
home_page = HomePage(page)
browse_page = BrowsePage(page)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable browse_page is not used.

Suggested change
browse_page = BrowsePage(page)

Copilot uses AI. Check for mistakes.
Comment on lines +2712 to +2713
start = time.time()

Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable start is not used.

Suggested change
start = time.time()

Copilot uses AI. Check for mistakes.
try:
threads.first.wait_for(state="visible", timeout=10000)
logger.info("✅ Chat history created and displayed with %d thread(s)", threads.count())
except:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except block directly handles BaseException.

Suggested change
except:
except Exception:

Copilot uses AI. Check for mistakes.
try:
delete_icon.wait_for(state="visible", timeout=2000)
is_delete_visible = True
except:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except block directly handles BaseException.

Copilot uses AI. Check for mistakes.
try:
edit_icon.wait_for(state="visible", timeout=2000)
is_edit_visible = True
except:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except block directly handles BaseException.

Copilot uses AI. Check for mistakes.
page.keyboard.press("Escape")
page.wait_for_timeout(1000)
logger.info("Closed chat history using Escape key")
except:
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except block directly handles BaseException.

Suggested change
except:
except Exception:

Copilot uses AI. Check for mistakes.
logger.info("✅ Tooltip displayed successfully on chat history hover")
logger.info("Tooltip text length: %d characters", len(tooltip_text))
else:
logger.error("❌ BUG FOUND: No tooltip displayed when hovering over chat history")
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement is unreachable.

Copilot uses AI. Check for mistakes.
Added instructions for using Visual Studio Code Web in the deployment guide.
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.

8 participants