Skip to content

test(vscuse): fix Copilot BizChat chat-input for new view and add F5 recovery#16367

Open
qfai wants to merge 1 commit into
devfrom
test/vscuse-copilot-bizchat-new-view
Open

test(vscuse): fix Copilot BizChat chat-input for new view and add F5 recovery#16367
qfai wants to merge 1 commit into
devfrom
test/vscuse-copilot-bizchat-new-view

Conversation

@qfai

@qfai qfai commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Update the vscuse Copilot/BizChat test steps for the redesigned M365 Copilot (BizChat) web view, and make the intermittent "This agent is not installed" local‑debug flow resilient. JSON test‑asset changes only.

Changes

1. New BizChat view — chat input moved

The M365 Copilot web view was redesigned: the chat input moved down (~y=369 → ~y=487) and the placeholder became agent‑specific (Message <agent name>). Updated the input‑click step to the new position, an OCR / placeholder‑agnostic target, and removed the stale dhash preconditions:

  • group__validation_DA_repair.json (step_bee70d3d)
  • group__validation_basic_ai_chat_bot_in_copilot.json (step_294018a0)

Ref: OfficeDev/microsoft-365-agents-toolkit-test#15504

2. "Agent not installed" F5 recovery

Added up to 3 F5 refreshes before the agent‑name assertion and made the F5 steps optional (continue_on_error), to recover from the intermittent "This agent is not installed" state:

  • group__debug_in_copilot_local.json
  • group__debug_in_copilot_local_none_da.json

3. Login robustness

Added a 90s retry window to the M365 sign‑in assertion so slower first‑time sign‑ins are not cut off:

  • group__login_m365_only.json

Validation

Ran Basic_Custom_Engine_Azure_OpenAI_js_Copilot_Local_Debug locally against image 20260715: 61/61 steps, 100%.

  • The 3× F5 recovery cleared "This agent is not installed" and the agent‑name assertion passed.
  • The new‑view step OCR‑matched the new placeholder + Message vscuse_app_…local at (412, 489) and clicked it; the bot then responded successfully.

…recovery

The M365 Copilot (BizChat) web view moved the chat input (~y=369 to ~y=487) and made the placeholder agent-specific. Update the input-click step in group__validation_DA_repair and group__validation_basic_ai_chat_bot_in_copilot to the new position with an OCR/placeholder-agnostic target and drop the stale dhash preconditions.

Add up to 3 F5 refreshes before the agent-name assertion in group__debug_in_copilot_local and group__debug_in_copilot_local_none_da to recover from the intermittent 'This agent is not installed' state, and make the F5 steps optional (continue_on_error).

Add a 90s retry window to the M365 sign-in assertion in group__login_m365_only so slower first-time sign-ins are not cut off.
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

❌ VscUse Test Plan — Tests failure

Why these tests: Selected 128 impacted test plan(s) changed in this PR (no product code modified).

Branch diff: test/vscuse-copilot-bizchat-new-viewdev

Results: ✅ 61 passed · ❌ 67 failed (of 128 plans)

Plans run:

  • Basic_Custom_Engine_Agent_Azure_OpenAI_py_Local_Debug
  • Basic_Custom_Engine_Azure_OpenAI_js_Copilot_Local_Debug
  • Basic_Custom_Engine_Azure_OpenAI_js_Copilot_Remote_Debug
  • Basic_Custom_Engine_Azure_OpenAI_js_Local_Debug
  • Basic_Custom_Engine_Azure_OpenAI_ts_Copilot_Local_Debug
  • Basic_Custom_Engine_Azure_OpenAI_ts_Copilot_Remote_Debug
  • Basic_Custom_Engine_Azure_OpenAI_ts_Local_Debug
  • Basic_Custom_Engine_OpenAI_js_Copilot_Local_Debug
  • Basic_Custom_Engine_OpenAI_js_Local_Debug
  • Basic_Custom_Engine_OpenAI_ts_Copilot_Local_Debug
  • Basic_Custom_Engine_OpenAI_ts_Local_Debug
  • Basic_Tab_Local_Debug
  • DA_Add_Action_Import_Existing_API
  • DA_Add_Action_Import_Existing_API_Basic_API_Key
  • DA_Add_Action_Import_Existing_API_Basic_No_Auth
  • DA_Add_Action_Import_Existing_API_Basic_OAuth
  • DA_Add_Action_Import_Existing_API_Bearer_token
  • DA_Api_Key_js_Local_Debug
  • DA_Api_Key_js_Remote_Debug
  • DA_Api_Key_ts_Local_Debug
  • DA_Api_Key_ts_Remote_Debug
  • DA_Error_Message_of_Legacy_Projects
  • DA_Microsoft_Entra_js_Local_Debug
  • DA_Microsoft_Entra_js_Remote_Debug
  • DA_Microsoft_Entra_ts_Local_Debug
  • DA_Microsoft_Entra_ts_Remote_Debug
  • DA_No_Action_Add_Action
  • DA_No_Action_Add_Knowledge_Onedrive
  • DA_No_Action_Local_Debug
  • DA_No_Action_Web_Search
  • DA_None_js_Local_Debug
  • DA_None_js_Remote_Debug
  • DA_None_ts_Local_Debug
  • DA_None_ts_Remote_Debug
  • DA_Oauth_js_Local_Debug
  • DA_Oauth_ts_Local_Debug
  • DA_Typespec_No_Action
  • DA_Typespec_Oauth_With_Reference_Id
  • DA_Typespec_Oauth_Without_Reference_Id
  • DA_Typespec_With_Action
  • Featrue_Open_DeveloperPortal_Publish
  • Feature_DA_Local_Env_Provision
  • Feature_DA_Manifest_File_Function_Env_Support
  • Feature_DA_Manifest_File_Function_Manifest_Plugin_Support
  • Feature_DA_Manifest_File_Function_Path_Support
  • Feature_DA_No_Action_Add_ApiKey_Auth_Configurations
  • Feature_DA_No_Action_Add_Bearer_Auth_Configurations
  • Feature_DA_No_Action_Add_Microsoft_Entra_Auth_Configurations
  • Feature_DA_No_Action_Add_OAuth_Auth_Configurations
  • Feature_DA_No_Action_Add_PKCE_OAuth_Auth_Configurations
  • Feature_LocalDebug_AI_Search_without_AzureOpenAI_Keys
  • Feature_LocalDebug_AI_Search_without_OpenAI_Keys
  • Feature_LocalDebug_Custom_API_without_AzureOpenAI_Keys
  • Feature_LocalDebug_Custom_API_without_OpenAI_Keys
  • Feature_LocalDebug_Port_in_Use
  • Feature_LocalDebug_Remove_App_then_Rerun
  • Feature_LocalDebug_Second_Press_F5_for_Bot
  • Feature_LocalDebug_with_Workbench
  • Feature_Open_DeveloperPortal_Publish
  • Feature_Provision_Without_Account
  • Feature_Report_Issue
  • Feature_Reusing_Simple_Bot
  • Feature_Simple_Bot_ts_Local_Debug_With_Different_Account
  • Feature__Test_Bot_AAD
  • Feature__Test_Tab_AAD
  • General_Teams_Agent_Azure_OpenAI_js_Copilot_Local_Debug
  • General_Teams_Agent_Azure_OpenAI_js_Copilot_Remote_Debug
  • General_Teams_Agent_Azure_OpenAI_js_Local_Debug
  • General_Teams_Agent_Azure_OpenAI_py_Copilot_Local_Debug
  • General_Teams_Agent_Azure_OpenAI_py_Copilot_Remote_Debug
  • General_Teams_Agent_Azure_OpenAI_py_Local_Debug
  • General_Teams_Agent_Azure_OpenAI_ts_Copilot_Local_Debug
  • General_Teams_Agent_Azure_OpenAI_ts_Copilot_Remote_Debug
  • General_Teams_Agent_Azure_OpenAI_ts_Local_Debug
  • General_Teams_Agent_OpenAI_js_Local_Debug
  • General_Teams_Agent_OpenAI_py_Local_Debug
  • General_Teams_Agent_OpenAI_ts_Local_Debug
  • Message_Extension_py_Local_Debug
  • Message_Extension_ts_Local_Debug
  • Sample_Adaptive_Card_Notification_Local_Debug
  • Sample_CoffeeAgent_Local
  • Sample_Contact_Exporter_Local_Debug
  • Sample_Copilot_Connection_Local_Debug
  • Sample_Da_Ristorante_Api_Local_Debug
  • Sample_Data_Analyst_Agent_Local_Debug
  • Sample_Data_Analyst_Agent_Playground_Debug
  • Sample_Graph_RSC_Helper_Debug_in_Team_Channel
  • Sample_Reddit_Link_Unfurling_Local_Debug
  • Sample_Stocks_Update_Notification_Bot_Local_Debug
  • Sample_Tab_And_Outlook_Addin_Local_Debug
  • Sample_Teams_Center_Dashboard_Local_Debug
  • Simple_Bot_js_Local_Debug
  • Simple_Bot_ts_Local_Debug
  • Simple_bot_py_local_debug
  • Tab_Local_Debug_Env_Local_Creation
  • Teams_Agent_With_Data_AI_Search_Azure_OpenAI_js_Local_Debug
  • Teams_Agent_With_Data_AI_Search_Azure_OpenAI_py_Local_Debug
  • Teams_Agent_With_Data_AI_Search_Azure_OpenAI_ts_Local_Debug
  • Teams_Agent_With_Data_AI_Search_OpenAI_js_Local_Debug
  • Teams_Agent_With_Data_AI_Search_OpenAI_py_Local_Debug
  • Teams_Agent_With_Data_AI_Search_OpenAI_ts_Local_Debug
  • Teams_Agent_With_Data_Custom_API_Azure_OpenAI_js_Local_Debug
  • Teams_Agent_With_Data_Custom_API_Azure_OpenAI_py_Local_Debug
  • Teams_Agent_With_Data_Custom_API_Azure_OpenAI_ts_Local_Debug
  • Teams_Agent_With_Data_Custom_API_OpenAI_js_Local_Debug
  • Teams_Agent_With_Data_Custom_API_OpenAI_py_Local_Debug
  • Teams_Agent_With_Data_Custom_API_OpenAI_ts_Local_Debug
  • Teams_Agent_With_Data_Customize_Azure_OpenAI_js_Copilot_Local_Debug
  • Teams_Agent_With_Data_Customize_Azure_OpenAI_js_Local_Debug
  • Teams_Agent_With_Data_Customize_Azure_OpenAI_py_Copilot_Local_Debug
  • Teams_Agent_With_Data_Customize_Azure_OpenAI_py_Local_Debug
  • Teams_Agent_With_Data_Customize_Azure_OpenAI_ts_Copilot_Local_Debug
  • Teams_Agent_With_Data_Customize_Azure_OpenAI_ts_Local_Debug
  • Teams_Agent_With_Data_Customize_OpenAI_js_Copilot_Local_Debug
  • Teams_Agent_With_Data_Customize_OpenAI_js_Local_Debug
  • Teams_Agent_With_Data_Customize_OpenAI_py_Copilot_Local_Debug
  • Teams_Agent_With_Data_Customize_OpenAI_py_Local_Debug
  • Teams_Agent_With_Data_Customize_OpenAI_ts_Copilot_Local_Debug
  • Teams_Agent_With_Data_Customize_OpenAI_ts_Local_Debug
  • Teams_Collaborator_Agent_local_debug
  • Weather_Agent_OpenAI_js_Copilot_Local_Debug
  • Weather_Agent_OpenAI_js_Local_Debug
  • Weather_Agent_OpenAI_ts_Copilot_Local_Debug
  • Weather_Agent_OpenAI_ts_Local_Debug
  • Weather_Agent_js_Local_Debug
  • Weather_Agent_js_local_copilot
  • Weather_Agent_ts_Local_Debug
  • Weather_Agent_ts_local_copilot

Step Status
1️⃣ Build VSIX (CD) ✅ Done
2️⃣ Build Docker image ✅ Done
3️⃣ Run UI tests ❌ Tests failure (61/128 passed)

🎯 Actual UI test run
🔗 Full pipeline results
📊 Detailed test report

ℹ️ How were these tests selected?

GitHub Copilot (Claude Sonnet 4.6, high reasoning) analysed the PR title, description, and the diff between
test/vscuse-copilot-bizchat-new-view and dev
to pick the most relevant test plans from packages/tests/vscuse/Index.md.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

E2E Test Selection — AI Selected

Why these tests: All changed files are under packages/tests/vscuse/** which maps to rule 8 (vscuse UI tests), so no e2e tests are needed.

Cases selected (0):


View pipeline run

Need to run more tests?

Comment on this PR:

  • /e2e-run ./path/to/test.tests.ts — add specific cases to AI selection
  • /e2e-run-all — run all e2e cases

Then re-run the workflow.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.61%. Comparing base (d20d108) to head (e0ca810).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              dev   #16367   +/-   ##
=======================================
  Coverage   87.61%   87.61%           
=======================================
  Files         643      643           
  Lines       33725    33725           
  Branches     7919     7919           
=======================================
  Hits        29547    29547           
  Misses       2369     2369           
  Partials     1809     1809           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant