From 8294b4d192abd2effc33b4aa6064733a3ebd492e Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 25 Aug 2026 21:05:15 -0700 Subject: [PATCH] Add Reply to a Memo Gherkin spec By specifier. --- specs/reply-memo.feature | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 specs/reply-memo.feature diff --git a/specs/reply-memo.feature b/specs/reply-memo.feature new file mode 100644 index 0000000..c4ff571 --- /dev/null +++ b/specs/reply-memo.feature @@ -0,0 +1,61 @@ +# Scenarios: Reply to a Memo - 1, Reply to a Memo - 2, Reply to a Memo - 3, Reply to a Memo - 4, Reply to a Memo - 5 +Feature: Reply to a Memo + + Background: + Given a wallet authenticated for the address bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d + Given the wallet has spendable output to pay the transaction fee + Given I open the thread for the post with txid aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + + Scenario Outline: Reply to a Memo - 1 a valid reply to a post is broadcast and shown in the thread + When I type a reply with the text "" + When I submit the reply + Then the wallet broadcasts an OP_RETURN transaction with the Memo reply prefix + Then the thread shows a new reply from my address with the text "" + + Examples: + | message | + | hello memo | + | a longer reply with several words. | + + Scenario Outline: Reply to a Memo - 2 an empty reply is rejected + When I type a reply with the text "" + When I submit the reply + Then the thread shows a validation error + Then the wallet does not broadcast any transaction + + Examples: + | message | + | | + + Scenario Outline: Reply to a Memo - 3 an over-long reply is rejected + When I type a reply with the text "" + When I submit the reply + Then the thread shows a length error + Then the wallet does not broadcast any transaction + + Examples: + | message | + | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | + | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | + + Scenario Outline: Reply to a Memo - 4 the byte counter counts down from the reply limit + When I type a reply with the text "" + Then the thread shows a remaining byte count of + + Examples: + | message | count | + | | 184 | + | hello | 179 | + | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 0 | + + Scenario Outline: Reply to a Memo - 5 a reply to a nested reply is broadcast + And the thread shows a nested reply with the txid bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb + When I type a reply to the nested reply with the text "" + When I submit the reply + Then the wallet broadcasts an OP_RETURN transaction with the Memo reply prefix + Then the thread shows a new reply from my address with the text "" + + Examples: + | message | + | hello nested | + | a longer nested reply. |