-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): restore report generation and fix location of received ima…
…ges (#3145) When an test failure occurred, the report was not generated and the development server did not stop at the end of the test execution. This was due to our custom function `toMatchImageSnapshot` becoming asynchronous in commit bffd25b. The original function is synchronous, so the custom function must be too. In addition to this fix, the logic of the code managing image attachments has been improved, mainly to better separate responsibilities. Storing the expected image copy and calculating the image location are specific to j-i-s, so there's no need to do this. to j-i-s, and are therefore performed first. The function for attaching images to the report only uses the previously calculated image location and is unaware that j-i-s is being used. For tests that redefined the location of output images (usually in a subfolder), the path to the received images was not updated accordingly. It was stored in the same location for each test, so only one file was kept and not stored with the diff and the expected image. Also regenerate the image for the “subprocess.03.collapsed.with.elements” test. - Previously, the test failed when run with firefox and this was for good reasons that were hidden with other browsers due to the threshold value used. - The sub-process on the top left is a "collapsed adhoc sub-process", so 2 markers must be displayed with a space between them. Currently, the adhoc marker is not displayed, but the expand marker is correctly positioned (not centered, but on the left) as if the adhoc marker were displayed. - Commit c0c50aa removed additional spacing between markers, so the expand marker has moved to the right. But the reference snapshot was not updated accordingly. - The test probably accepted a minor visual change like this, but at some point the new version of Firefox added other changes that are above the threshold, and the error now appears. - The problem didn't occur on macOS because the threshold was increased in commit bfa02fc, but this hid the problem.
- Loading branch information
Showing
7 changed files
with
159 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.73 KB
(110%)
...2e/__image_snapshots__/bpmn-rendering/subprocess.03.collapsed.with.elements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.