Skip to content

Search box snapshots are failing

The latest master branch seems to be red due to

 ● Image storyshots › base|search-box › default

    Expected image to match or be a close match to snapshot but was 0.012083333333333333% different from snapshot (58 differing pixels).
    See diff for details: /builds/gitlab-org/gitlab-ui/tests/__image_snapshots__/__diff_output__/storyshots-spec-js-image-storyshots-base-search-box-default-1-diff.png

      at _callee2$ (node_modules/@storybook/addon-storyshots-puppeteer/dist/index.js:140:29)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:62:40)
      at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:296:22)
      at Generator.prototype.(anonymous function) [as next] (node_modules/regenerator-runtime/runtime.js:114:21)
      at step (node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
      at node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13

Looks like the search box component got its CSS classes updated on GitLab CE and it's causing the visual test job to fail

Bildschirmfoto_2019-02-07_um_21.57.19

(https://gitlab.com/gitlab-org/gitlab-ui/-/jobs/158092209/artifacts/file/tests/image_snapshots/diff_output/storyshots-spec-js-image-storyshots-base-search-box-default-1-diff.png)

Edited by Inactive Account