Skip to content

Instantly share code, notes, and snippets.

@robsquires
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robsquires/f9abff159688d55680bf to your computer and use it in GitHub Desktop.
Save robsquires/f9abff159688d55680bf to your computer and use it in GitHub Desktop.

Media Asset Pages powered by a PID should be playable

Given I'm on a media asset page powered by a PID
 When I press play on the video
 Then the video should play

has now become..

Videos authored by UK journalists through system X should be playable on media asset pages

Given I'm on the media asset page about the levitating skateboard
 When I press play on the video
 Then the video should play

Feedback from BDD meetup:

the one where - bringing in the levitating skateboard immediately improves this

please give me an example - the scenario name now tells me why we need to do this

However, given videos can be shown on different types of pages, I feel like I need a separate scenario for that..

Videos authored by UK journalists through system X should be playable on story pages

Given I'm on the story page about the levitating skateboard
 When I press play on the video
 Then the video should play

Say we have 5 page types, given this approach, we would end up with 5 scenarios for the playback feature. Say we have 10 features, we obviously get 50 scenarios. Would you consider this duplication? If so you have any tips for dealing with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment