fix: adjust tooltip when it is outside #129
Annotations
3 errors
placement › strategies › bounds › dock - auto:
packages/picasso.js/src/web/components/tooltip/__tests__/placement.spec.js#L298
assert.deepStrictEqual(received, expected)
Expected value to deeply and strictly equal to:
{"computedArrowStyle": {"borderWidth": "5px", "left": "calc(50% - 5px)", "top": "100%"}, "computedTooltipStyle": {"left": "18.5px", "top": "24px", "transform": "translate(-50%, -100%) translateY(-5px)"}, "dock": "top"}
Received:
{"computedArrowStyle": {"borderWidth": "5px", "left": "calc(50% - 28.5px)", "top": "100%"}, "computedTooltipStyle": {"left": "42px", "top": "24px", "transform": "translate(-50%, -100%) translateY(-5px)"}, "dock": "top"}
Message:
expected { Object (computedTooltipStyle, computedArrowStyle, ...) } to deeply equal { computedArrowStyle: { …(3) }, …(2) }
Difference:
- Expected
+ Received
Object {
"computedArrowStyle": Object {
"borderWidth": "5px",
- "left": "calc(50% - 5px)",
+ "left": "calc(50% - 28.5px)",
"top": "100%",
},
"computedTooltipStyle": Object {
- "left": "18.5px",
+ "left": "42px",
"top": "24px",
"transform": "translate(-50%, -100%) translateY(-5px)",
},
"dock": "top",
}
at Object.equal (packages/picasso.js/src/web/components/tooltip/__tests__/placement.spec.js:298:27)
|
unit-test
The process '/usr/local/bin/yarn' failed with exit code 1
|
unit-test
🚨 Coverage run failed!
|