Logo: Relish

  1. Sign in

Project: Facilturno

Cash Withdrawal

  • @ExampleFromCucumberBook

Example taken from the Cucumber book

Scenarios
Succesful withdrawal from an account in credit

The user successfully has his money

Given
my account has been credited with $100
When
I withdraw $20
Then
$20 should be dispensed
And
the balance of my account should be $80
Unsuccesful withdrawal from an account in credit
Given
my account has been credited with $10
When
I withdraw $20
Then
$0 should be dispensed
And
the balance of my account should be $10
And
an error message should be shown

Last published about 5 years ago by Carolina.