Skip to content

Commit

Permalink
[code-infra] Fix flaky dashboard screenshot (#43890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Sep 26, 2024
1 parent 4c6f67e commit 989e0c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/regressions/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
<style>
body {
background-color: white;
/*
Hide scrollbars but keep scrollable. Playwright hides scrollbar when capturing a screenshot on an element
or with fullPage: true. When the body has a scrollbar, this causes a brief layout shift.
*/
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
</style>
</head>
Expand Down

0 comments on commit 989e0c0

Please sign in to comment.