When asking a question about a problem caused by your code, you will get much better answers if you provide code people can use to reproduce the problem. That code should be… …Minimal – Use as little code as possible that still produces the same problem …Complete – Provide all parts needed to reproduce the problem …Verifiable – Test the code you're about to provide to make sure it reproduces the problem
From Stackoverflow's MCVE write up
- Fork the repo
- Instal dependencies
npm i && ./node_modules/.bin/webdriver-manager update
- Edit the config and example spec to reproduce your issue
- Run the specs and make sure they fail
./node_modules/.bin/protractor conf.js
- Link to your fork in a Protractor issue
If you need to do something on the client; please use docs/index.html
file to add client side JS
This repository exists to help you quickly create an MVCE for easier debugging with Protractor and for posting in the protractor issue queue.
This is very simple. If there's a way to make it easier for others to use please create a pull request. Thanks!