Skip to content

fix: adjust tooltip when it is outside #129

fix: adjust tooltip when it is outside

fix: adjust tooltip when it is outside #129

Triggered via pull request December 22, 2023 17:04
@quanhoquanho
synchronize #818
hva/QB-23576
Status Failure
Total duration 2m 18s
Artifacts

unit-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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!