Skip to content

Test reliability: styleOptions.js #2776

@compulim

Description

@compulim

Feature Request

FAIL __tests__/styleOptions.js (19.191s)
  ● style options › hide scroll to bottom button

    Expected image to match or be a close match to snapshot but was 1.4891493055555556% different from snapshot (3431 differing pixels).
    �[1m�[31mSee diff for details:�[39m�[22m �[31m/home/vsts/work/1/s/__tests__/__image_snapshots__/chrome-docker/__diff_output__/style-options-js-style-options-hide-scroll-to-bottom-button-1-diff.png�[39m

      49 |     await pageObjects.scrollToTop();
      50 | 
    > 51 |     expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);
         |                                           ^
      52 | 
      53 |     await pageObjects.updateProps({ styleOptions: { hideScrollToEndButton: true } });
      54 | 

      at _callee2$ (__tests__/styleOptions.js:51:43)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:45:40)
      at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:271:22)
      at Generator.prototype.(anonymous function) [as next] (node_modules/regenerator-runtime/runtime.js:97:21)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:45:40)
      at invoke (node_modules/regenerator-runtime/runtime.js:135:20)
      at node_modules/regenerator-runtime/runtime.js:145:13

 › 1 snapshot failed.

image

[Enhancement]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions