Skip to content

Instantly share code, notes, and snippets.

@dherges
Last active August 4, 2017 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dherges/fa665c6f53ffae7afc9cff36eadbe90d to your computer and use it in GitHub Desktop.
Save dherges/fa665c6f53ffae7afc9cff36eadbe90d to your computer and use it in GitHub Desktop.
Angular, Protractor, Cucumber
Feature: Search
As a developer using Angular
I need to look-up classes and guidelines
So that I can concentrate on building awesome applications
Scenario: Type in a search-term
Given I am on the angular.io site
When I type "foo" into the search input field
Then I should see some results in the search overlay
import { defineSupportCode } from 'cucumber';
defineSupportCode(({Given, When, Then}) => {
Given('I am on the angular.io site', () => {
/* ... */
});
When('I type "{term}" into the search input field', (text: string) => {
/* ... */
});
Then('I should see some results in the search overlay', () => {
/* ... */
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment