Skip to content

test(intelligent-assistant): screen context QE coverage (stacks on #4862) - #4863

Draft
HusneShabbir wants to merge 6 commits into
redhat-developer:mainfrom
HusneShabbir:test/RHIDP-17047-screen-context-coverage
Draft

HusneShabbir wants to merge 6 commits into
redhat-developer:mainfrom
HusneShabbir:test/RHIDP-17047-screen-context-coverage

Conversation

@HusneShabbir

@HusneShabbir HusneShabbir commented Sep 18, 2026

Copy link
Copy Markdown
Member

Summary

Stacked QE automation for Deep Context / screen context UX (RHIDP-14319), on top of the product PR.

What changed (tip commit)

Layer Coverage
L1 screen-context-utils gating matrix (admin/sharing/pause/fullscreen/vision) + buildScreenContextAttachments (DOM + screenshot; degrade when capture fails / DOM throws)
L3 LightspeedChatBoxHeader kebab Enable / Disable screen context when admin flag is on
L4a New e2e-tests/lightspeed.screen-context.test.ts + helpers: kebab → chip recording; pause/resume; fullscreen unavailable; paused send has no screen-context attachments

QE tickets

Review tip vs product PR

its-mitesh-kumar:feat/screen-context-chip...HusneShabbir:test/RHIDP-17047-screen-context-coverage

Test plan

  • In workspaces/intelligent-assistant/plugins/intelligent-assistant: yarn test --watchAll=false --testPathPatterns='screen-context-utils|LightspeedChatBoxHeader'
  • In workspaces/intelligent-assistant: APP_MODE=legacy npx playwright test e2e-tests/lightspeed.screen-context.test.ts --project=en
  • Confirm CI green on this PR (may need rebase onto updated feat(intelligent-assistant): screen context chip, kebab opt-in, and gated attachments ( #4862 head)
  • Spot-check: with intelligent-assistant.screen-context.enabled: true, kebab Enable shows chip; pause → send has no image/DOM attachments

its-mitesh-kumar and others added 3 commits September 18, 2026 01:11
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
…IDP-14319

Fill gating-matrix and kebab RTL gaps, and add mocked Playwright journeys for kebab/chip/pause/fullscreen so QE layers under RHIDP-14768 can gate the Deep Context UX.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rhdh-gh-app

rhdh-gh-app Bot commented Sep 18, 2026

Copy link
Copy Markdown

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-intelligent-assistant workspaces/intelligent-assistant/plugins/intelligent-assistant minor v5.2.0

Complete CaptureResult mocks for tsc, and assert paused-send attachments via the same query route pattern used by MCP specs (no try/catch).

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.95349% with 57 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.29%. Comparing base (ce6f5f5) to head (80b3962).
⚠️ Report is 30 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4863      +/-   ##
==========================================
+ Coverage   60.14%   60.29%   +0.14%     
==========================================
  Files        2673     2679       +6     
  Lines      106162   106661     +499     
  Branches    29807    29955     +148     
==========================================
+ Hits        63856    64311     +455     
- Misses      41789    41832      +43     
- Partials      517      518       +1     
Flag Coverage Δ *Carryforward flag
adoption-insights 84.77% <ø> (ø) Carriedforward from 1c0e3c2
ai-integrations 79.83% <ø> (ø) Carriedforward from 1c0e3c2
app-defaults 54.82% <ø> (ø) Carriedforward from 1c0e3c2
augment 46.67% <ø> (ø) Carriedforward from 1c0e3c2
boost 84.97% <ø> (ø) Carriedforward from 1c0e3c2
bulk-import 73.12% <ø> (ø) Carriedforward from 1c0e3c2
cost-management 13.53% <ø> (ø) Carriedforward from 1c0e3c2
dcm 73.47% <ø> (ø) Carriedforward from 1c0e3c2
e2e-adoption-insights 60.00% <ø> (ø) Carriedforward from 1c0e3c2
e2e-extensions 62.31% <ø> (ø) Carriedforward from 1c0e3c2
e2e-global-header 51.82% <ø> (ø) Carriedforward from 1c0e3c2
e2e-homepage 61.11% <ø> (ø) Carriedforward from 1c0e3c2
e2e-intelligent-assistant 45.96% <ø> (-0.05%) ⬇️ Carriedforward from 1c0e3c2
e2e-orchestrator 49.49% <ø> (ø) Carriedforward from 1c0e3c2
e2e-orchestrator-plugin 49.48% <ø> (ø) Carriedforward from 1c0e3c2
e2e-quickstart 55.21% <ø> (ø) Carriedforward from 1c0e3c2
e2e-scorecard 50.05% <ø> (ø) Carriedforward from 1c0e3c2
e2e-theme 16.36% <ø> (ø) Carriedforward from 1c0e3c2
extensions 58.30% <ø> (ø) Carriedforward from 1c0e3c2
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 1c0e3c2
global-header 67.76% <ø> (ø) Carriedforward from 1c0e3c2
homepage 48.39% <ø> (ø) Carriedforward from 1c0e3c2
install-dynamic-plugins 71.77% <ø> (ø) Carriedforward from 1c0e3c2
intelligent-assistant 78.75% <88.95%> (+0.76%) ⬆️
konflux 91.98% <ø> (ø) Carriedforward from 1c0e3c2
lightspeed 69.02% <ø> (ø) Carriedforward from 1c0e3c2
mcp-integrations 84.46% <ø> (ø) Carriedforward from 1c0e3c2
orchestrator 77.32% <ø> (ø) Carriedforward from 1c0e3c2
quickstart 63.74% <ø> (ø) Carriedforward from 1c0e3c2
sandbox 79.56% <ø> (ø) Carriedforward from 1c0e3c2
scorecard 88.44% <ø> (ø) Carriedforward from 1c0e3c2
theme 87.91% <ø> (ø) Carriedforward from 1c0e3c2
translations 5.12% <ø> (ø) Carriedforward from 1c0e3c2
x2a 13.86% <ø> (ø) Carriedforward from 1c0e3c2

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce6f5f5...80b3962. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

HusneShabbir and others added 2 commits September 18, 2026 18:25
Avoid Escape between kebab verify/enable (it closes the chatbot), re-enable sharing after fullscreen remount for guest e2e, and wait on the Options control in the chat header.

Assisted-by: Composer
Co-authored-by: Cursor <cursoragent@cursor.com>
… strict mode

getByText on the paused label matched both the Label button and inner span; use the same state CSS class pattern as recording/unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants