Logo: Relish

  1. Sign in

Project: Maxivaproj

Manage lorries

In order to [goal]
[stakeholder]
wants [behaviour]

Scenarios
Register new lorry
Given
I have gone to the new lorry page
When
I fill in "Name" with "name 1"
And
I press "Create"
Then
I should see "name 1 - this is from before filter"
  • @emulate_rails_javascript
Delete lorry
Given
the following lorries:
name colour
name 1 green
name 2 yellow
name 3 pink
name 4 blue
When
I delete the 3rd lorry
Then
I should see the following lorries:
name colour
name 1 green
name 2 yellow
name 4 blue
And
I should see the following lorries in a definition list:
name 1 green
name 2 yellow
name 4 blue
And
I should see the following lorries in an ordered list:
name 1
name 2
name 4
ensure use_transactional_fixtures is working and rolling DB back
Given
I have not created any lorries in this scenario
But
the previous scenarios have
Then
there should be 0 lorries
  • @emulate_rails_javascript
Delete the blue lorry, which is magic and always raises an error, but allow rescue
Given
the following lorries:
name colour
name 1 green
name 2 yellow
name 3 pink
name 4 blue
When
I delete the 4th lorry and deal with the expected error
Then
I should see the following lorries:
name colour
name 1 green
name 2 yellow
name 3 pink
name 4 blue
  • @wip
Delete the blue lorry, which is magic and always raises an error
Given
the following lorries:
name colour
name 1 green
name 2 yellow
name 3 pink
name 4 blue
When
I delete the 4th lorry
  • @wip
This is currently failing
Given
I have 45 pink lorries
This is currently failing
Given
I have gone to the new lorry page
Then
I should see "monkey" within ".cage"

Last published about 5 years ago by Max Iva.