Skip to content

Commit

Permalink
converted all commands from coffee to es6, then converted to es5 with…
Browse files Browse the repository at this point in the history
… babel

unfortunately nightwatch doesn't support es6 custom commands
  • Loading branch information
maxgalbu committed Aug 2, 2016
1 parent 8db9725 commit 01798d4
Show file tree
Hide file tree
Showing 70 changed files with 2,326 additions and 2,002 deletions.
3 changes: 3 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esnext": true
}
17 changes: 5 additions & 12 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@ So, you want to add you command or assertion. Great!
Read [this guide](http://nightwatchjs.org/guide#extending) on how to write it.
The name you give to the file will be the name of the command or assertion.

Now, do you use coffeescript? Follow these steps:

- checkout the repository (obviously :)
- run `npm install` (this will install gulp and coffeelint globally, and all the dev dependencies)
- run `gulp watch`
- start writing your command in the `coffee/commands` folder or your assertion in the `coffee/assertions` folder
- run `npm test` when you're done, and fix the errors
- make a pull request

Do you use javascript instead? Bad boy. Follow these steps:
Then:

- checkout the repository
- start writing your command in the `js/commands` folder or your assertion in the `js/assertions` folder
- start writing your command in the `es6/commands` folder or your assertion in the `es6/assertions` folder
- run `npm install -g gulp`
- run `npm install` in the root folder
- run `gulp`
- make a pull request
- I'll convert the command/assertion for you in coffeescript
62 changes: 0 additions & 62 deletions coffee/assertions/elementHasChildren.coffee

This file was deleted.

45 changes: 0 additions & 45 deletions coffee/assertions/elementHasNoChildren.coffee

This file was deleted.

32 changes: 0 additions & 32 deletions coffee/commands/jqueryClick.coffee

This file was deleted.

30 changes: 0 additions & 30 deletions coffee/commands/shell.coffee

This file was deleted.

82 changes: 0 additions & 82 deletions coffee/commands/waitForAttribute.coffee

This file was deleted.

61 changes: 0 additions & 61 deletions coffee/commands/waitForJqueryAjaxRequest.coffee

This file was deleted.

Loading

0 comments on commit 01798d4

Please sign in to comment.