Skip to content

Commit

Permalink
feat(XMLHttpRequest): Also detect outstanding requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonso-presa committed Jul 27, 2016
1 parent 7d04127 commit 1f6e7d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ docs
npm-debug.log
coverage
report
.vscode
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ This plugins enables testing projects and libraries not built against AngularJS

This means that your TDD/BDD tests will be a lot cleaner as you will not have to add aditional waitings and tweak timeouts to get your tests passing consistently as protractor will know when there's a task pending and it will wait automatically between each step for it to get completed.

Ofcourse this is not magical and when coding the applications or libraries you should notify testability.js about the pending task providing it a promise.

If you're coding a reusable front end library, you definitely should consider notifying testability.js when doing something asynchronous as it will make e2e testing in projects using your library a lot more easy.

## Installation
Expand All @@ -28,7 +26,7 @@ plugins: [{

This plugin will make protractor wait automatically for the following async events:

* JQuery ajax requests
* Ajax requests
* setTimeout/clearTimeout, setInterval/clearInterval: only if it's time is below 5 seconds, because otherwise it's considered a timeout.
* setImmediate/clearImmediate
* fetch
Expand Down
2 changes: 1 addition & 1 deletion dist/protractor-testability-plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! protractor-testability-plugin - v1.0.2
* Release on: 2016-05-02
* Release on: 2016-07-27
* Copyright (c) 2016 Alfonso Presa
* Licensed MIT */
(function (root, factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/protractor-testability-plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f6e7d7

Please sign in to comment.