Skip to content

Commit

Permalink
chore: hide scrollbar for visual test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Feb 5, 2024
1 parent c78b459 commit c78bc35
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ addCompareSnapshotCommand({
capture: 'fullPage',
errorThreshold: 0.15,
})

Cypress.Screenshot.defaults({
onBeforeScreenshot($el) {
$el.css('overflow', 'hidden')
},
onAfterScreenshot($el) {
$el.css('overflow', 'auto')
},
})

0 comments on commit c78bc35

Please sign in to comment.