Skip to content

WEBDEV-9009: Fix the demo scroll spy test on a taller demo page - #92

Merged
jbuckner merged 1 commit into
mainfrom
WEBDEV-9009-scroll-spy-test-isolation
Sep 3, 2026
Merged

jbuckner merged 1 commit into
mainfrom
WEBDEV-9009-scroll-spy-test-isolation

Conversation

@jbuckner

@jbuckner jbuckner commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

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

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
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-03 18:50 UTC

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.57%. Comparing base (98c26f1) to head (9afe735).

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

@pezvi pezvi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jbuckner
jbuckner merged commit 6517ad1 into main Sep 3, 2026
4 checks passed
@jbuckner
jbuckner deleted the WEBDEV-9009-scroll-spy-test-isolation branch September 3, 2026 18:49
jbuckner added a commit that referenced this pull request Sep 10, 2026
…udio-element

* origin/main:
  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)
jbuckner added a commit that referenced this pull request Sep 10, 2026
…rate-waveform-progress

* WEBDEV-8963-migrate-audio-element:
  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-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
…-migrate-scrubber-bar

* WEBDEV-8965-migrate-playback-controls:
  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)
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
jbuckner added a commit that referenced this pull request Sep 10, 2026
…8968-migrate-transcript-view

* WEBDEV-8967-migrate-expandable-search-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)
jbuckner added a commit that referenced this pull request Sep 10, 2026
…grate-radio-player

* WEBDEV-8974-migrate-search-handler:
  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:
#	package.json
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.

3 participants