mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo-client.git
synced 2026-09-21 16:52:02 -07:00
Cover the new-post posting flag (initial idle, in-flight true, settled false) to kill the four surviving mutants, and commit the differential and acceptance mutation manifests written by the approved tools during the architect verification pass for the new-post-page feature. By architect.
62 lines
3.4 KiB
Gherkin
62 lines
3.4 KiB
Gherkin
# acceptance-mutation-manifest-begin
|
|
# {"version":1,"tested_at":"2026-08-26T00:08:15.433121898Z","feature_name":"New Post Page","feature_path":"/home/trout/work/psf-memo-client/.worktrees/architect/specs/memo-new.feature","background_hash":"e1d5f81f1ed083ac6934c429ca3cb4a0f8d4dac44c2eaa45c0960920bde2c017","implementation_hash":"unknown","scenarios":[{"index":1,"name":"New Post Page - 2 an empty memo is rejected on the new post page","scenario_hash":"ac70dcf123f435da2b8a6c4953b0b22b8e7a5a8a74291547b954cb562cf9f339","mutation_count":1,"result":{"Total":1,"Killed":1,"Survived":0,"Errors":0},"tested_at":"2026-08-26T00:08:15.433121898Z"}]}
|
|
# acceptance-mutation-manifest-end
|
|
|
|
# Scenarios: New Post Page - 1, New Post Page - 2, New Post Page - 3, New Post Page - 4, New Post Page - 5
|
|
Feature: New Post Page
|
|
|
|
Background:
|
|
Given a wallet authenticated for the address bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d
|
|
Given the wallet has spendable output to pay the transaction fee
|
|
|
|
Scenario Outline: New Post Page - 1 a valid memo is posted and the user lands on the feed
|
|
Given I navigate to the path /posts/new
|
|
When I type a memo with the text "<message>"
|
|
When I click the post button
|
|
Then the app broadcasts an OP_RETURN transaction with the Memo post prefix
|
|
Then I navigate to the path /posts/recent
|
|
Then the feed shows a new post from my address with the text "<message>"
|
|
|
|
Examples:
|
|
| message |
|
|
| hello memo |
|
|
| a longer memo with several words. |
|
|
|
|
Scenario Outline: New Post Page - 2 an empty memo is rejected on the new post page
|
|
Given I navigate to the path /posts/new
|
|
When I type a memo with the text "<message>"
|
|
When I click the post button
|
|
Then the new post page shows a validation error
|
|
Then the app does not broadcast any transaction
|
|
|
|
Examples:
|
|
| message |
|
|
| |
|
|
|
|
Scenario Outline: New Post Page - 3 an over-long memo is rejected on the new post page
|
|
Given I navigate to the path /posts/new
|
|
When I type a memo with the text "<message>"
|
|
When I click the post button
|
|
Then the new post page shows a length error
|
|
Then the app does not broadcast any transaction
|
|
|
|
Examples:
|
|
| message |
|
|
| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
|
|
| bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
|
|
|
|
Scenario Outline: New Post Page - 4 the character counter counts down from the memo limit
|
|
Given I navigate to the path /posts/new
|
|
When I type a memo with the text "<message>"
|
|
Then the new post page shows a remaining character count of <count>
|
|
|
|
Examples:
|
|
| message | count |
|
|
| | 217 |
|
|
| hello | 212 |
|
|
| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 0 |
|
|
|
|
Scenario: New Post Page - 5 the navigation menu links to the new post page
|
|
Given I open the navigation menu
|
|
Then the menu shows a link to the path /posts/new
|