Skip to content

test(intelligent-assistant): expand notebook Release 2.1 E2E coverage - #4551

Merged
jrichter1 merged 4 commits into
redhat-developer:mainfrom
HusneShabbir:feat/notebooks-release-2.1-e2e-coverage
Sep 7, 2026
Merged

jrichter1 merged 4 commits into
redhat-developer:mainfrom
HusneShabbir:feat/notebooks-release-2.1-e2e-coverage

Conversation

@HusneShabbir

@HusneShabbir HusneShabbir commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds focused Playwright coverage for Lightspeed Notebooks Release 2.1 across RHIDP-14854 (inline rename POMs), RHIDP-14896 (upload modal UX, card counts, overwrite flow), and RHIDP-14656 (compact overlay/docked modes).
  • Extends NotebookSurfacePage and NotebookAddDocumentModalPage with compact header actions, scoped MUI dialog locators (hasText / aria-label for nested panels), and sidebar expand helpers.
  • Refactors lightspeed.notebooks-compact.test.ts to use page objects; adds upload-complete, remove-resource modal, and delete-notebook modal panel tests.

Resolves:https://redhat.atlassian.net/browse/RHIDP-15135

Test plan

  • yarn playwright test e2e-tests/lightspeed.notebooks.test.ts --project=en --workers=1 (23 passed)
  • yarn playwright test e2e-tests/lightspeed.notebooks-compact.test.ts --project=en --workers=1 (30 passed)
  • yarn playwright test e2e-tests/lightspeed.notebooks.conversation.test.ts --project=en
  • Verify notebook CI e2e job passes on this PR

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.26%. Comparing base (f64d720) to head (3864083).
⚠️ Report is 37 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4551   +/-   ##
=======================================
  Coverage   62.26%   62.26%           
=======================================
  Files        2606     2606           
  Lines      104644   104644           
  Branches    29428    29416   -12     
=======================================
+ Hits        65155    65157    +2     
+ Misses      38927    38925    -2     
  Partials      562      562           
Flag Coverage Δ *Carryforward flag
adoption-insights 84.30% <ø> (ø) Carriedforward from c8096a7
ai-integrations 76.15% <ø> (ø) Carriedforward from c8096a7
app-defaults 56.22% <ø> (ø) Carriedforward from c8096a7
augment 46.67% <ø> (ø) Carriedforward from c8096a7
boost 80.51% <ø> (ø) Carriedforward from c8096a7
bulk-import 73.12% <ø> (ø) Carriedforward from c8096a7
cost-management 13.55% <ø> (ø) Carriedforward from c8096a7
dcm 73.47% <ø> (ø) Carriedforward from c8096a7
e2e-adoption-insights 60.00% <ø> (ø) Carriedforward from c8096a7
e2e-extensions 62.32% <ø> (ø) Carriedforward from c8096a7
e2e-global-header 50.35% <ø> (ø) Carriedforward from c8096a7
e2e-homepage 61.11% <ø> (ø) Carriedforward from c8096a7
e2e-intelligent-assistant 47.04% <ø> (ø) Carriedforward from c8096a7
e2e-orchestrator 49.52% <ø> (ø) Carriedforward from c8096a7
e2e-orchestrator-plugin 49.51% <ø> (ø) Carriedforward from c8096a7
e2e-quickstart 55.21% <ø> (ø) Carriedforward from c8096a7
e2e-scorecard 50.21% <ø> (ø) Carriedforward from c8096a7
e2e-theme 16.36% <ø> (ø) Carriedforward from c8096a7
extensions 56.66% <ø> (ø) Carriedforward from c8096a7
global-floating-action-button 71.18% <ø> (ø) Carriedforward from c8096a7
global-header 68.09% <ø> (ø) Carriedforward from c8096a7
homepage 48.39% <ø> (ø) Carriedforward from c8096a7
install-dynamic-plugins 67.71% <ø> (ø) Carriedforward from c8096a7
intelligent-assistant 76.43% <ø> (+0.02%) ⬆️
konflux 91.98% <ø> (ø) Carriedforward from c8096a7
lightspeed 69.02% <ø> (ø) Carriedforward from c8096a7
mcp-integrations 84.14% <ø> (ø) Carriedforward from c8096a7
orchestrator 71.13% <ø> (ø) Carriedforward from c8096a7
quickstart 63.74% <ø> (ø) Carriedforward from c8096a7
sandbox 79.56% <ø> (ø) Carriedforward from c8096a7
scorecard 87.90% <ø> (ø) Carriedforward from c8096a7
theme 87.91% <ø> (ø) Carriedforward from c8096a7
translations 5.12% <ø> (ø) Carriedforward from c8096a7
x2a 77.10% <ø> (ø) Carriedforward from c8096a7

*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 f64d720...3864083. 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.

…erage

Extend Playwright coverage for inline rename POMs, upload modal UX,
card counts, overwrite flow, and compact overlay/docked modes with
scoped dialog locators that work in nested MUI panels.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HusneShabbir
HusneShabbir force-pushed the feat/notebooks-release-2.1-e2e-coverage branch from a93bf1d to c21f9ee Compare September 4, 2026 11:57
Comment thread workspaces/intelligent-assistant/e2e-tests/pages/NotebookAddDocumentModalPage.ts Outdated
Comment thread workspaces/intelligent-assistant/e2e-tests/pages/NotebookAddDocumentModalPage.ts Outdated
Comment thread workspaces/intelligent-assistant/e2e-tests/pages/NotebookSurfacePage.ts Outdated
Comment thread workspaces/intelligent-assistant/e2e-tests/pages/NotebookSurfacePage.ts Outdated
Use getByRole with exact name matching instead of invalid locator options,
and replace manual aria-label checks with Playwright auto-retry assertions.

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

Copy link
Copy Markdown
Member Author

Addressed review feedback in 5dfb848:

  • NotebookAddDocumentModalPage: switched addFilesButton and cancelButton to getByRole('button', { name, exact: true }) instead of invalid locator(..., { hasText, exact }) options.
  • NotebookSurfacePage: refactored toggleCompactSidebarAndExpectLabelFlip to use await expect(toggle).toHaveAttribute('aria-label', ...) with auto-retry (removed waitForTimeout + manual getAttribute checks).
  • deleteDocumentConfirmButton / cancelDeleteDocumentConfirmation: same getByRole fix for exact button matching.

Verified locally: 53/53 notebook specs pass (lightspeed.notebooks*.test.ts, --workers=1).

HusneShabbir and others added 2 commits September 7, 2026 18:45
Compact scoped dialogs scroll inside the paper, so the footer Cancel
button can sit below the fold and never match getByRole visibility
checks. Fall back to the always-visible title close control when
dismissing the upload modal in overlay/docked notebook modes.

Assisted-by: Auto
Co-authored-by: Cursor <cursoragent@cursor.com>
Compact overlay/docked modes nest the upload and delete-document
dialogs inside the chatbot dialog, so footer buttons are absent from
the accessibility tree and getByRole never matches. Scope footer
actions via MuiDialogActions and button:text-is(), and target the
dropzone via role=button aria-label instead.

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

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

@jrichter1
jrichter1 merged commit c22b464 into redhat-developer:main Sep 7, 2026
26 checks passed
rohitkrai03 pushed a commit to rohitkrai03/rhdh-plugins that referenced this pull request Sep 10, 2026
…redhat-developer#4551)

* test(intelligent-assistant): add focused notebook Release 2.1 E2E coverage

Extend Playwright coverage for inline rename POMs, upload modal UX,
card counts, overwrite flow, and compact overlay/docked modes with
scoped dialog locators that work in nested MUI panels.

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

* fix(intelligent-assistant): address notebook E2E POM review feedback

Use getByRole with exact name matching instead of invalid locator options,
and replace manual aria-label checks with Playwright auto-retry assertions.

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

* fix(intelligent-assistant): dismiss compact upload modal via title close

Compact scoped dialogs scroll inside the paper, so the footer Cancel
button can sit below the fold and never match getByRole visibility
checks. Fall back to the always-visible title close control when
dismissing the upload modal in overlay/docked notebook modes.

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

* fix(intelligent-assistant): use DOM locators for nested notebook modals

Compact overlay/docked modes nest the upload and delete-document
dialogs inside the chatbot dialog, so footer buttons are absent from
the accessibility tree and getByRole never matches. Scope footer
actions via MuiDialogActions and button:text-is(), and target the
dropzone via role=button aria-label instead.

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

---------

Co-authored-by: HusneShabbir <husneshabbir447@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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