Intermittently failing test on DetailsPanel
The loads element details
test in test/Element/DetailsPanel.js
randomly fails with this error:
446 passing (8s)
1 failing
1) Element
DetailsPanel.vue
loads element details:
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
[
+ {
+ action: 'process/createProcess',
+ payload: {
+ corpus: 'corpusid',
+ element: 'elementid',
+ element_name_contains: 'A',
+ element_type: 'alphanumeric'
+ }
+ },
+ {
+ mutation: 'notifications/notify',
+ payload: {
+ text: "An error occurred creating the process: I'm a teapot",
+ type: 'error'
+ }
+ },
{
...
}
}
]
+ expected - actual
[
{
- "action": "process/createProcess"
- "payload": {
- "corpus": "corpusid"
- "element": "elementid"
- "element_name_contains": "A"
- "element_type": "alphanumeric"
- }
- }
- {
- "mutation": "notifications/notify"
- "payload": {
- "text": "An error occurred creating the process: I'm a teapot"
- "type": "error"
- }
- }
- {
"action": "elementsv2/get"
"payload": {
"id": "elementid"
}
at _callee$ (test/Element/DetailsPanel.js:70:1)
at tryCatch (node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.<computed> [as next] (node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:117:21)
at asyncGeneratorStep (.tmp/mochapack/1619622824779/main.js:34634:103)
at _next (.tmp/mochapack/1619622824779/main.js:34636:194)
To reproduce, run npm t
in a loop: while npm t; do echo "https://www.youtube.com/watch?v=FGBhQbmPwH8"; done