mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-21 16:52:01 -07:00
- Add unit tests to kill all mutation survivors in GetPostThread (sort order, missing blockHeight/seen fallbacks, non-string txid). - Add default-limit and falsy-pagination tests for the client page controllers (ProfilePage, RecentFeedPage). - Refresh mutation manifests and Gherkin acceptance mutation metadata. - Write durable review report to docs/reviews/like-count-display-summary.md. By architect.
45 lines
3.6 KiB
Gherkin
45 lines
3.6 KiB
Gherkin
# acceptance-mutation-manifest-begin
|
|
# {"version":1,"tested_at":"2026-08-27T03:45:29.024609067Z","feature_name":"Like Count Display","feature_path":"/home/trout/work/psf-memo/.worktrees/architect/psf-memo-client/specs/like-count-display.feature","background_hash":"fbe6cdb3df821009903f22248beed2018e00df162f6df280b81686214168733f","implementation_hash":"unknown","scenarios":[{"index":0,"name":"Like Count Display - 1 the recent feed shows the like count returned by the API for each post","scenario_hash":"812ee12d4f7968f5c7024a15297854aa8c900ae7b19972718875e77c67106a65","mutation_count":4,"result":{"Total":4,"Killed":4,"Survived":0,"Errors":0},"tested_at":"2026-08-27T03:40:43.303265742Z"},{"index":2,"name":"Like Count Display - 3 the profile page shows the like count returned by the API for each post","scenario_hash":"cdc53b5eddbc3f103472495a7d6650def4cd586c1567aab01f55fdc4989a5a8c","mutation_count":4,"result":{"Total":4,"Killed":4,"Survived":0,"Errors":0},"tested_at":"2026-08-27T03:40:43.303265742Z"}]}
|
|
# acceptance-mutation-manifest-end
|
|
|
|
# Scenarios: Like Count Display - 1, Like Count Display - 2, Like Count Display - 3, Like Count Display - 4
|
|
Feature: Like Count Display
|
|
|
|
Background:
|
|
Given the psf-memo-db API serves a post with txid aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa authored by the address bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d with a like count of 17
|
|
Given the psf-memo-db API serves a post with txid bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb authored by a second address with a like count of 3
|
|
Given the psf-memo-db API serves a post with txid cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc authored by a third address with no like count recorded
|
|
|
|
Scenario Outline: Like Count Display - 1 the recent feed shows the like count returned by the API for each post
|
|
When I open the recent posts feed
|
|
Then the post with txid <txid> shows the like count <expected>
|
|
|
|
Examples:
|
|
| txid | expected |
|
|
| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 17 |
|
|
| bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 3 |
|
|
|
|
Scenario: Like Count Display - 2 a post with no recorded like count shows a count of zero
|
|
When I open the recent posts feed
|
|
Then the post with txid cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc shows the like count 0
|
|
|
|
Scenario Outline: Like Count Display - 3 the profile page shows the like count returned by the API for each post
|
|
Given I open the profile page for the author of the post with txid <txid>
|
|
Then the post with txid <txid> shows the like count <expected>
|
|
|
|
Examples:
|
|
| txid | expected |
|
|
| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 17 |
|
|
| bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 3 |
|
|
|
|
Scenario Outline: Like Count Display - 4 the thread view shows the like count returned by the API for the root post and each reply
|
|
Given the thread for the post with txid <txid> contains a reply with txid <reply_txid>
|
|
When I open the thread for the post with txid <txid>
|
|
Then the post with txid <txid> shows the like count <expected_root>
|
|
Then the reply with txid <reply_txid> shows the like count <expected_reply>
|
|
|
|
Examples:
|
|
| txid | reply_txid | expected_root | expected_reply |
|
|
| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd | 17 | 5 |
|
|
| bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee | 3 | 8 |
|