Skip to content

Commit

Permalink
SBVT-1658: Fix bug when sending layout mode: low (#131)
Browse files Browse the repository at this point in the history
* SBVT-1658: fixing bug where 0 was mistaken as falsy

* SBVT-1658: fixing package json lock

* SBVT-1658: dev is back working

* SBVT-1658: dev is back working

---------

Co-authored-by: trevor.nelms <[email protected]>
  • Loading branch information
tnelms1 and trevor.nelms authored Jul 11, 2023
1 parent 70e7b58 commit 4ba8c0c
Show file tree
Hide file tree
Showing 5 changed files with 615 additions and 2,859 deletions.
2 changes: 1 addition & 1 deletion commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ let sendImageApiJSON = () => {
ignoredElements: JSON.stringify(dom.ignoredElementsData),
userAgentInfo: JSON.stringify(userAgentData),
comparisonMode: layoutData && layoutData.comparisonMode ? layoutData.comparisonMode : null,
sensitivity: layoutData && layoutData.sensitivity ? layoutData.sensitivity : null,
sensitivity: layoutData && (layoutData.sensitivity || layoutData.sensitivity === 0) ? layoutData.sensitivity : null,
headless: Cypress.browser.isHeadless
};

Expand Down
Loading

0 comments on commit 4ba8c0c

Please sign in to comment.