Last active
August 4, 2017 06:48
-
-
Save dherges/fa665c6f53ffae7afc9cff36eadbe90d to your computer and use it in GitHub Desktop.
Angular, Protractor, Cucumber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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