Skip to content

Instantly share code, notes, and snippets.

@julien-topcu
Last active October 18, 2021 10:24
Show Gist options
  • Save julien-topcu/11b07f4f6d97063357444b5590a1118c to your computer and use it in GitHub Desktop.
Save julien-topcu/11b07f4f6d97063357444b5590a1118c to your computer and use it in GitHub Desktop.
Feature: Search tracks for a specific music style
Scenario: A listener requests an unknown music style
Given a listener
And the music library is composed of classical, rock tracks
When the listener requests tracks for the funk music style
Then the listener is notified that there are no tracks available for the funk style
Scenario: A listener requests a music style belonging to the music library
Given a listener
And the music library is composed of classical, funk, rock tracks
When the listener requests tracks for the funk music style
Then the listener gets the funk tracks
Scenario: A listener requests a music style having only previews
Given a listener
And the music library has only previews for the funk style
When the listener requests tracks for the funk music style
Then the listener is notified that there are no tracks available for the funk style
But the listener is notified that previews exist for the funk style
And the listener is invited to subscribe to the premium program
Scenario: A listener requests a music style having previews
Given a listener
And the music library has previews for the funk style
When the listener requests tracks for the funk music style
Then the listener gets the funk tracks
But there is no previews amongst the tracks
Scenario: A premium listener requests a music style belonging to the music library
Given a premium listener
And the music library has previews for the funk style
When the premium listener requests tracks for the funk music style
Then the premium listener has access to funk previews
Scenario: A listener requests a music style having a related music style
Given a listener
And the music library is composed of classical, disco, funk tracks
And disco is related to the funk style
When the listener requests tracks for the funk music style
Then the listener gets the funk tracks
And the listener also gets the disco tracks
And the listener gets nothing else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment