Skip to content

Instantly share code, notes, and snippets.

@ualinker
Created December 14, 2012 17:52
Show Gist options
  • Select an option

  • Save ualinker/4287279 to your computer and use it in GitHub Desktop.

Select an option

Save ualinker/4287279 to your computer and use it in GitHub Desktop.
Feature: Subscribe
In order to be able to receive notifications about new releases
As a user
I should be able to subscribe to artists
Scenario: Subscribe attempt by unauthorised user from artist page
Given I am on artist page of Филипп Киркоров
When I press "Subscribe"
Then login dialog should appear
Scenario: Subscribe attempt by unauthorised user from search page
Given I am on search page
When I enter query "киркоров"
And I press "Search"
And I wait for the search results to appear
And I press "Subscribe" for Филипп Киркоров
Then login dialog should appear
Scenario: Subscribe from artist page
Given I am logged in
And I am not subscribed to Филипп Киркоров
And I am on artist page of Филипп Киркоров
When I press "Subscribe"
Then button converts to "Unsubscribe"
And I have subscription for Филипп Киркоров
Scenario: Subscribe from search page
Given I am on search page
And I am logged in
And I am not subscribed to Филипп Киркоров
When I enter query "киркоров"
And I press "Search"
And I wait for the search results to appear
And I press "Subscribe" for Филипп Киркоров
Then button for Филипп Киркоров converts to "Unsubscribe"
And I have subscription for Филипп Киркоров
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment