From cce73e966e0e45c45957998091f9631a68cf312d Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Sat, 4 Jun 2022 12:09:35 +0200 Subject: [PATCH] tests(cucumber): add an end2end test to reproduce bug #60 --- .../balance_transfer.feature | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/end2end-tests/cucumber-features/balance_transfer.feature b/end2end-tests/cucumber-features/balance_transfer.feature index ecddb1d66..21fb3036d 100644 --- a/end2end-tests/cucumber-features/balance_transfer.feature +++ b/end2end-tests/cucumber-features/balance_transfer.feature @@ -1,6 +1,28 @@ Feature: Balance transfer - Scenario: If alice sends 5 ÄžD to Dave, Dave will get 5 ÄžD - Given alice have 10 ÄžD + Scenario: Create a new account with enough founds When alice send 5 ÄžD to dave Then dave should have 5 ÄžD + When 1 block later + """ + The blockchain should automatically withdraw account creation tax (3 ÄžD) + """ + Then dave should have 2 ÄžD + + Scenario: Create a new account without enough founds then retry with enough founds + When alice send 2 ÄžD to eve + Then eve should have 2 ÄžD + When 1 block later + """ + The blockchain should automatically destroy Evec account + because Eve not have enough founds to pay the new account tax + """ + Then eve should have 0 ÄžD + When alice send 5 ÄžD to eve + Then eve should have 5 ÄžD + When 1 block later + """ + The blockchain should automatically withdraw account creation tax (3 ÄžD) + """ + Then eve should have 2 ÄžD + -- GitLab