Skip to content

fix(snapshot): suppress unavailable offer fields#9

Merged
intel352 merged 1 commit into
mainfrom
fix/unavailable-transactional-fields
May 22, 2026
Merged

fix(snapshot): suppress unavailable offer fields#9
intel352 merged 1 commit into
mainfrom
fix/unavailable-transactional-fields

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • clear price, seller, shipping, total, and Prime fields when Amazon reports an item unavailable
  • add regression coverage for unavailable pages that still contain stale offer DOM fields

Verification

  • GOWORK=off go test ./internal/snapshot -run 'TestExtractAmazonUnavailableProduct' -count=1
  • GOWORK=off go test ./...
  • live capture: B0CMVPN6GL now returns availability only with no transactional fields
  • live capture: B0DL7CKRJ5 still returns third-party seller/price/shipping fields

@intel352 intel352 merged commit 2334486 into main May 22, 2026
4 checks passed
@intel352 intel352 deleted the fix/unavailable-transactional-fields branch May 22, 2026 11:04
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