Skip to content
Snippets Groups Projects
Commit cce73e96 authored by Éloïs's avatar Éloïs
Browse files

tests(cucumber): add an end2end test to reproduce bug #60

parent 3e99e842
No related branches found
No related tags found
1 merge request!60fix(account):if new account can't pay NewAccountTax, it must be removed
This commit is part of merge request !60. Comments created here will be created in the context of that merge request.
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment