Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Last active March 5, 2019 15:06
Show Gist options
  • Save vzaidman/3cf9918955830afc83efb8544c933b70 to your computer and use it in GitHub Desktop.
Save vzaidman/3cf9918955830afc83efb8544c933b70 to your computer and use it in GitHub Desktop.
Feature: A reader can share an article to social networks
As a reader
I want to share articles
So that I can notify my friends about an article I liked
Scenario: An article was opened
Given I'm inside an article
When I share the article
Then the article should change to a "shared" state
module.exports = function() {
this.Given(/^I'm inside an article$/, function(callback) {
// functional testing tool code
})
this.When(/^I share the article$/, function(callback) {
// functional testing tool code
})
this.Then(/^the article should change to a "shared" state$/, function(callback) {
// functional testing tool code
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment