Skip to content

test(NcReferenceWidget): cover a widget that is back in the viewport - #9268

Open
DerDreschner wants to merge 1 commit into
mainfrom
test/reference-widget-back-in-viewport
Open

DerDreschner wants to merge 1 commit into
mainfrom
test/reference-widget-back-in-viewport

Conversation

@DerDreschner

Copy link
Copy Markdown
Contributor

☑️ Resolves

  • Missing test: a widget that is scrolled out of the viewport and back within three minutes must not be rendered again or destroyed, as that resets its state.

Test only, the component already does that.

🖼️ Screenshots

Not applicable, no visual change.

🚧 Tasks

  • Add the test

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
    each commit containing AI-assisted content must include a git trailer: Assisted-by: AGENT_NAME:MODEL_VERSION

No test failed if a widget that was scrolled out of the viewport and
back was rendered again or destroyed too early, which resets its state.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner
DerDreschner requested a review from a team as a code owner December 1, 2026 12:55
@DerDreschner DerDreschner added this to the 9.15.0 milestone Dec 1, 2026
@DerDreschner DerDreschner added 3. to review Waiting for reviews feature: testing Related to tests feature: richtext Related to the richtext component AI assisted This PR contains AI-assisted commits labels Dec 1, 2026
@DerDreschner DerDreschner self-assigned this Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.61%. Comparing base (a1ea4d7) to head (d18f055).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9268   +/-   ##
=======================================
  Coverage   62.61%   62.61%           
=======================================
  Files         131      131           
  Lines        4791     4791           
  Branches     1452     1452           
=======================================
  Hits         3000     3000           
  Misses       1528     1528           
  Partials      263      263           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@pringelmann pringelmann modified the milestones: 9.15.0, 9.16.0 Dec 2, 2026

This branch has not been deployed

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

Labels

3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits feature: richtext Related to the richtext component feature: testing Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants