Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodaguti/nightmare-type-issue
https://github.com/nodaguti/nightmare-type-issue
Last synced: about 20 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/nodaguti/nightmare-type-issue
- Owner: nodaguti
- Created: 2015-12-26T04:01:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-26T14:17:17.000Z (about 9 years ago)
- Last Synced: 2023-03-23T08:23:05.756Z (almost 2 years ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Nightmare type() issue
This is a demo application to describe an issue existing in `nightmare.type()` of Nightmare v2.1.0.
## Step to reproduce
```sh
% git clone [email protected]:nodaguti/nightmare-type-issue.git
% cd nightmare-type-issue
% npm install
% npm start &
% npm test
```## Expected Result
No error comes up.## Actual Result
```
nightmare
1) can type a long string into a textarea0 passing (2s)
1 failing1) nightmare can type a long string into a textarea:
AssertionError: # test/index.js:21
assert(message === MESSAGE)
| | |
| | "123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789"
| false
"12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912"--- [string] MESSAGE
+++ [string] message
@@ -873,28 +873,12 @@
912345678912
-3456789123456789+ expected - actual
-false
+trueat decoratedAssert (node_modules/empower/lib/decorate.js:42:30)
at powerAssert (node_modules/empower/index.js:65:32)
at Context. (test/index.js:21:5)
at [object Generator].next (native)
at onFulfilled (node_modules/co/index.js:65:19)
at Nightmare. (node_modules/nightmare/lib/nightmare.js:311:10)
at Nightmare.done (node_modules/nightmare/lib/nightmare.js:221:15)
at Nightmare.next (node_modules/nightmare/lib/nightmare.js:199:28)
at EventEmitter. (node_modules/nightmare/lib/nightmare.js:209:12)
at ChildProcess. (node_modules/nightmare/lib/ipc.js:28:10)
at handleMessage (internal/child_process.js:686:10)
at Pipe.channel.onread (internal/child_process.js:440:11)
```