Repository navigation
WEBDEV-9009: Fix the demo scroll spy test on a taller demo page - #92
Merged
Merged
Conversation
The test asserted the spy had marked the first element before waiting for the stories to load. The otp-input story takes focus as it lands, which scrolls the page down to it, so by the time the spy ran the first anchor was above the viewport and the spy was correctly marking something else. The settle and page-height waits already existed further down, so this moves them above the assertion and resets the scroll before it. It only showed up once the demo had enough elements to scroll, which is why main is green and the radio player stack is not. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RuJpnAKn9TtFvMxcEgwdm
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #92 +/- ##
=======================================
Coverage 81.57% 81.57%
=======================================
Files 27 27
Lines 928 928
Branches 227 227
=======================================
Hits 757 757
Misses 110 110
Partials 61 61 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jbuckner
added a commit
that referenced
this pull request
Sep 10, 2026
…-migrate-search-handler * WEBDEV-8964-migrate-waveform-progress: WEBDEV-8951 Add a mediatype center icon to ia-status-indicator (#91) 0.2.13 WEBDEV-8458 Migrate item-navigator into elements (#64) WEBDEV-9009: Fix the demo scroll spy test on a taller demo page (#92) # Conflicts: # src/elements/index.ts
jbuckner
added a commit
that referenced
this pull request
Sep 10, 2026
…-migrate-playback-controls * WEBDEV-8964-migrate-waveform-progress: WEBDEV-8951 Add a mediatype center icon to ia-status-indicator (#91) 0.2.13 WEBDEV-8458 Migrate item-navigator into elements (#64) WEBDEV-9009: Fix the demo scroll spy test on a taller demo page (#92) # Conflicts: # src/elements/index.ts
jbuckner
added a commit
that referenced
this pull request
Sep 10, 2026
…ate-expandable-search-bar * WEBDEV-8966-migrate-scrubber-bar: WEBDEV-8951 Add a mediatype center icon to ia-status-indicator (#91) 0.2.13 WEBDEV-8458 Migrate item-navigator into elements (#64) WEBDEV-9009: Fix the demo scroll spy test on a taller demo page (#92) # Conflicts: # src/elements/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The otp-input story takes focus as it loads, which scrolls the page. The test asserted on the scroll spy before waiting for the stories to settle, so the first anchor was already out of view.
Green on main either way. It only fails once the demo has enough elements to scroll, which is the radio player stack.
🤖 Generated with Claude Code
https://claude.ai/code/session_017RuJpnAKn9TtFvMxcEgwdm