Report a Ratel Bug
The test src/e2etests/acl/passwordCheck.test.js
has 8 unhandled errors, but test are returned as passing.
What Version of Ratel are you using?
docker pull dgraph/ratel:v21.03.0
What version of Dgraph are you using?
docker pull dgraph/dgraph:v21.03.0
Which Version of the UI are you using
- Stable
- Bleeding Edge
- Local Offline
Have you tried reproducing the issue with the latest release?
git clone git@github.com:dgraph-io/ratel.git
Steps to reproduce the issue (command/config used to run Dgraph).
cd client/src/e2etests
docker-compose -f docker-compose.prod.yml up -d
ratelport="$(docker container port e2etests_ratel_1 8000 | cut -d: -f2)"
alphaport="$(docker container port e2etests_alpha_1 8080 | cut -d: -f2)"
TEST_DGRAPH_SERVER="http://localhost:$alphaport" TEST_RATEL_URL="http://localhost:$ratelport?local" \
npm test -- --runInBand --testTimeout 40000 --watchAll=false
Expected behaviour and actual result.
I didn’t expect errors and having the test pass. I am not sure from the output if the test passed or failed, it may still yield PASS, and whether the test failed.
Actual Results
PASS src/e2etests/acl/passwordCheck.test.js (6.657 s)
● Console
console.error
Unhandled error
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
console.error
TypeError: Cannot read property 'createElement' of null
at sanitizeUrl (/Users/joaquin/area51/work/ratel/client/src/lib/helpers.js:515:25)
at recipe (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:137:37)
at Immer.produce (/Users/joaquin/area51/work/ratel/client/node_modules/immer/src/core/immerClass.ts:96:14)
at _default (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:129:29)
at combination (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:465:29)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-persist/lib/persistReducer.js:159:20
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:219:22)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-thunk/lib/index.js:14:16
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:644:28)
at _callee4$ (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:331:13)
at tryCatch (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.throw (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:42:103)
at _throw (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:44:291)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)
console.error
Unhandled error
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
console.error
TypeError: Cannot read property 'createElement' of null
at sanitizeUrl (/Users/joaquin/area51/work/ratel/client/src/lib/helpers.js:515:25)
at recipe (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:137:37)
at Immer.produce (/Users/joaquin/area51/work/ratel/client/node_modules/immer/src/core/immerClass.ts:96:14)
at _default (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:129:29)
at combination (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:465:29)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-persist/lib/persistReducer.js:159:20
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:219:22)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-thunk/lib/index.js:14:16
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:644:28)
at _callee5$ (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:394:15)
at tryCatch (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.throw (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:42:103)
at _throw (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:44:291)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)
console.error
Unhandled error
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
console.error
TypeError: Cannot read property 'createElement' of null
at sanitizeUrl (/Users/joaquin/area51/work/ratel/client/src/lib/helpers.js:515:25)
at recipe (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:137:37)
at Immer.produce (/Users/joaquin/area51/work/ratel/client/node_modules/immer/src/core/immerClass.ts:96:14)
at _default (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:129:29)
at combination (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:465:29)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-persist/lib/persistReducer.js:159:20
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:219:22)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-thunk/lib/index.js:14:16
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:644:28)
at _callee4$ (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:331:13)
at tryCatch (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.throw (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:42:103)
at _throw (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:44:291)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)
console.error
Unhandled error
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
console.error
TypeError: Cannot read property 'createElement' of null
at sanitizeUrl (/Users/joaquin/area51/work/ratel/client/src/lib/helpers.js:515:25)
at recipe (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:137:37)
at Immer.produce (/Users/joaquin/area51/work/ratel/client/node_modules/immer/src/core/immerClass.ts:96:14)
at _default (/Users/joaquin/area51/work/ratel/client/src/reducers/connection.js:129:29)
at combination (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:465:29)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-persist/lib/persistReducer.js:159:20
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:219:22)
at /Users/joaquin/area51/work/ratel/client/node_modules/redux-thunk/lib/index.js:14:16
at dispatch (/Users/joaquin/area51/work/ratel/client/node_modules/redux/lib/redux.js:644:28)
at _callee5$ (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:394:15)
at tryCatch (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.throw (/Users/joaquin/area51/work/ratel/client/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:42:103)
at _throw (/Users/joaquin/area51/work/ratel/client/src/actions/connection.js:44:291)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at process.uncaught (node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)