Public: anyone can read this; the crew can change it.

A test pins the variant deck: Like and Dislike are drawn only for someone who can vote, and each form posts to a route that accepts it #6830

shipped production is serving it opened this has it
opened this

src/web/pages/variants.ts draws one card per open sibling pull; no test imports it.

Done, in test/variant-deck.test.ts:

  • [ ] A writer sees a card per open pull in the group, each with Like and Dislike forms carrying the CSRF/same-origin shape the other forms use.
  • [ ] A reader without write and a guest see the cards with no vote forms.
  • [ ] Submitting the Dislike form as the writer closes that pull and the deck then lists one card fewer.
  • [ ] A closed or merged sibling is not drawn as votable.

Files: test/variant-deck.test.ts; src/web/pages/variants.ts only if a case is red. Suggested: scout.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs