• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adobe / spectrum-web-components / 30121412344
96%

Build:
DEFAULT BRANCH: main
Ran 24 Jul 2026 07:50PM UTC
Jobs 1
Files 402
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Jul 2026 07:42PM UTC coverage: 96.243%. Remained the same
30121412344

push

github

web-flow
refactor(core): lean out SpectrumElement (#6523)

* refactor(core): lean out SpectrumElement

Trim SpectrumElement to only what every 2nd-gen component needs:

- Extract `hasVisibleFocusInTree` into the `isFocusVisibleInTree(root)` utility
  (mirrors the existing `getActiveElement` util it wraps); add a unit test and
  export from `@adobe/spectrum-wc-core/utils`. No 2nd-gen component consumed the
  method.
- Remove the `get dir()` override. 2nd-gen resolves direction via
  `getComputedStyle(...).direction` at each call site; nothing read `element.dir`.
- Remove the now-empty `SpectrumMixin` / `SpectrumInterface`. Their only remaining
  job was a non-null `shadowRoot` retype nothing relied on (all reads use `?.`).
  `SpectrumElement` now extends `LitElement` directly.
- Drop the stale `hasVisibleFocusInTree` / `dir` entries from the Storybook
  argTypes hide-list.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test(core): strengthen isFocusVisibleInTree coverage; docs: util-based API

Address review feedback on the SpectrumElement cleanup:

- Rewrite the util test to actually exercise every branch: keyboard focus via
  `userEvent.tab()` proves the true (`:focus-visible`) branch; programmatic focus
  on a button proves the "active but not focus-visible" false branch; and an empty
  attached shadow root proves the `root` argument scopes the query. Drops the
  meaningless detached-shadow-root check and the redundant fixture null-guard.
- Update the focus-management contributor guide to document the
  `isFocusVisibleInTree(root)` utility instead of the removed
  `SpectrumElement.hasVisibleFocusInTree()` method; regenerate nav.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test(core): drop flaky programmatic-focus assertion from isFocusVisibleInTree

Chromium and WebKit paint :focus-visible on a programmatic .focus() when no
mouse-down preceded it, so the "active but not :focus-visible" case was not
deterministic. Remove it; the n... (continued)

6023 of 6466 branches covered (93.15%)

Branch coverage included in aggregate %.

37935 of 39208 relevant lines covered (96.75%)

461.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30121412344.1 24 Jul 2026 07:50PM UTC 402
96.24
GitHub Action Run
Source Files on build 30121412344
  • Tree
  • List 402
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30121412344
  • 86f40a1e on github
  • Prev Build on main (#30112914088)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc