feat: improve hotkeys functionality and resolve related issues #1094
You are viewing an older attempt in the history of this workflow run.
View latest attempt.
Annotations
9 errors
test
@data-story/ui#test: command (/home/runner/work/data-story/data-story/packages/ui) yarn run test exited (1)
|
src/components/DataStory/getNodesWithNewSelection.test.ts > returns empty array when no nodes are passed:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L6
AssertionError: expected undefined to match object []
- Expected:
Array []
+ Received:
undefined
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:6:46
|
src/components/DataStory/getNodesWithNewSelection.test.ts > selects the first node when no node is selected:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L19
AssertionError: expected { id: '1', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:19:49
|
src/components/DataStory/getNodesWithNewSelection.test.ts > selects the same node if it is uttermost in direction:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L33
AssertionError: expected null to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
null
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:33:51
|
src/components/DataStory/getNodesWithNewSelection.test.ts > selects new closest node in up direction:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L47
AssertionError: expected { id: '1', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:47:49
|
src/components/DataStory/getNodesWithNewSelection.test.ts > selects new closest node in down direction:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L61
AssertionError: expected { id: '3', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": false,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
},
]
+ Received:
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:61:51
|
src/components/DataStory/getNodesWithNewSelection.test.ts > selects new closest node in left direction:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L75
AssertionError: expected { id: '1', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:75:51
|
src/components/DataStory/getNodesWithNewSelection.test.ts > selects new closest node in right direction:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L89
AssertionError: expected { id: '3', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": false,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
},
]
+ Received:
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:89:52
|
test
Process completed with exit code 1.
|