Skip to content

Instantly share code, notes, and snippets.

@danscotton
Last active August 29, 2015 14:23
Show Gist options
  • Save danscotton/73ba4814228acc8407b0 to your computer and use it in GitHub Desktop.
Save danscotton/73ba4814228acc8407b0 to your computer and use it in GitHub Desktop.
debug output 'displaying the current mix'
Feature: Player metadata
In order to know what track is currently playing
As a user
I want to see metadata in the player
Background: # test/rake/features/player_metadata.feature:6
Given the following data exists in EAPI # test/rake/features/step_definitions/mixes.rb:5
| Category | Group | Mix | Track | Artist |
| Themes | Fitness | Gym workout | Track A | Artist A |
| | | | Track B | Artist B |
| | | | Track C | Artist C |
| | | | Track D | Artist D |
| | | | Track E | Artist E |
| Genres | Alternative | Grunge | Track F | Artist F |
| | | | Track G | Artist G |
| | | | Track H | Artist H |
| | | | Track I | Artist I |
| | | | Track J | Artist J |
| | | | Track K | Artist K |
rerender playerContainer
Track: undefined Artist: undefined
Warning: owner-based and parent-based contexts differ (values: `undefined` vs `[object Object]`) for key (flux) while mounting MixesView (see: http://fb.me/react-conte
xt-by-parent)
An action of type APP_STARTED was dispatched, but no store handled it
And I am on the Mixes page # test/rake/features/step_definitions/mixes.rb:1
rerender playerContainer
Track: undefined Artist: undefined
When I select the 'Gym workout' mix # test/rake/features/step_definitions/mixes.rb:37
PlaySessionStore onStartMixSuccess ; ["Track A","Track B","Track C","Track D","Track E"]
rerender playerContainer
Track: undefined Artist: undefined
PlaySessionStore tracks: ["Track A","Track B","Track C","Track D","Track E"]
PlaySessionStore next track: Track A now emitting change
rerender playerContainer
Track: Track A Artist: Artist A
onLoadTrack Track A
rerender playerContainer
Track: Track A Artist: Artist A
Scenario: Displaying the current mix # test/rake/features/player_metadata.feature:23
Then the player displays mix 'Gym workout' # test/rake/features/step_definitions/player.rb:38
rerender playerContainer
Track: undefined Artist: undefined
Warning: owner-based and parent-based contexts differ (values: `undefined` vs `[object Object]`) for key (flux) while mounting MixesView (see: http://fb.me/react-conte
xt-by-parent)
An action of type APP_STARTED was dispatched, but no store handled it
rerender playerContainer
Track: undefined Artist: undefined
PlaySessionStore onStartMixSuccess ; ["Track A","Track B","Track C","Track D","Track E"]
rerender playerContainer
Track: undefined Artist: undefined
PlaySessionStore tracks: ["Track A","Track B","Track C","Track D","Track E"]
PlaySessionStore next track: Track A now emitting change
rerender playerContainer
Track: Track A Artist: Artist A
onLoadTrack Track A
rerender playerContainer
Track: Track A Artist: Artist A
Clicked Skip
PlaySessionStore tracks: ["Track B","Track C","Track D","Track E"]
PlaySessionStore next track: Track B now emitting change
rerender playerContainer
Track: Track B Artist: Artist B
Scenario: Displaying the current track # test/rake/features/player_metadata.feature:26
When I click the skip button # test/rake/features/step_definitions/player.rb:1
Then the player displays track 'Track B' # test/rake/features/step_definitions/player.rb:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment