Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nodaguti/nightmare-type-issue


https://github.com/nodaguti/nightmare-type-issue

Last synced: about 20 hours ago
JSON representation

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 textarea

0 passing (2s)
1 failing

1) 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
+true

at 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)
```