Logo: Relish

  1. Sign in

Project: Example-project

Add/Remove a Favourite with JavaScript

  • @favourite_plugin
  • @js
  • @remove_favourite
Scenarios
  • @track
Can Add an item to Favourites when already signedin
Given
I am signed in
And
I am on test page for a "item" with Favourite button
When
I click on the Favourite button
Then
I should see the "item" added to my Favourites
Examples:
item
track
recipe
playlister track
Can Remove the item from Favourites
Given
I am signed in
And
I have "track" track added to my favourites
And
I am on the test page for a "track" with Favourites button
When
I click on the Favourite button
Then
I should see the "radio track" removed from Favourites
Can Sign in to Add a Favourite
Given
I am not signed in
And
I am on the test page for a "track" with Favourites button
When
I click on the Favourite button
Then
I should see the BBCiD sign in overlay
Same track cannot be added from multiple programmes PSP-1935
Given
I am signed in
And
I have "enabled" javascript
And
I have "track" track added to my favourites
When
I try to add track with same title to my favourites
Then
the track should already be favourited

Last published about 7 years ago by medhavi.