This is a working example of running Angular E2E tests using Cucumber.js, Protractor, and WebDriverJS.
-
Install dependencies
npm install bower install
-
Start the application server
grunt server
-
Start the application server
grunt server
-
Start the selenium server
grunt selenium
-
Run the cucumber tests
grunt test
- Cucumber.js README
- Protractor README
- WebDriverJS Guide
- WebDriverJS WebDriver API
- WebDriverJS Locators API
- Quit driver after running all the cucumber tests. Can easily be added once the afterAll hook is added to cucumber.js
These are questions that I need to figure out due to my lack of familiarity with WebDriverJS and Selenium.
- Why does omitting
usingServer
allow running tests on Chrome without having the selenium server running? - Saving
world.coffee
triggers some actions on the selenium server. Assuming there is some file watching mechanism in place, what files are watched and which actions are taken?