Skip to content

fix(website): TrustStrip test asserts on img alt, not textContent - #53

Merged
blove merged 1 commit into
mainfrom
fix/truststrip-test-img-alt
May 1, 2026
Merged

blove merged 1 commit into
mainfrom
fix/truststrip-test-img-alt

Conversation

@blove

@blove blove commented May 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • #51 replaced wordmark text with <img alt="..."> elements; the existing test inspected container.textContent which doesn't include alt attributes, so it broke on main after merge.
  • Fix asserts against the collection of alt attribute values instead.

Test plan

  • `pnpm --filter @pretable/app-website test` — 51 passed (was 50/51 on main)
  • CI green

#51 swapped wordmark text for <img alt="..."> elements; the test
still inspected container.textContent which doesn't include alt
attributes, so it broke on main. Assert against alt-text collection
instead.

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

vercel Bot commented May 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pretable Ignored Ignored May 1, 2026 10:43pm

Request Review

@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

Vercel preview ready

Preview: https://pretable-2pdlq46gs-cacheplane.vercel.app
Commit: 67c9fca31c372c9966c78081e7a5445bb914cfe8

Updated automatically by the deploy-preview job.

@blove
blove merged commit 6422306 into main May 1, 2026
9 checks passed
@blove
blove deleted the fix/truststrip-test-img-alt branch May 1, 2026 22:58
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.

1 participant