Skip to content

Commit

Permalink
Remove system bars padding in screenshot tests
Browse files Browse the repository at this point in the history
The system ui does not exist in ATD images that's used on CI
  • Loading branch information
saket committed Dec 7, 2024
1 parent 7f51a55 commit 5043a65
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import android.view.KeyEvent
import android.view.ViewConfiguration
import androidx.compose.animation.core.SnapSpec
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.border
import androidx.compose.foundation.gestures.DraggableState
import androidx.compose.foundation.gestures.Orientation
Expand All @@ -17,7 +16,6 @@ import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBarsPadding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
Expand Down Expand Up @@ -1304,7 +1302,6 @@ class ZoomableImageTest {
Box(
Modifier
.fillMaxSize()
.systemBarsPadding()
.padding(24.dp)
) {
ZoomableImage(
Expand Down Expand Up @@ -1353,7 +1350,6 @@ class ZoomableImageTest {
Box(
Modifier
.fillMaxSize()
.systemBarsPadding()
.padding(24.dp)
) {
ZoomableImage(
Expand Down Expand Up @@ -1387,7 +1383,6 @@ class ZoomableImageTest {
Box(
Modifier
.fillMaxSize()
.systemBarsPadding()
.padding(24.dp),
Alignment.Center,
) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5043a65

Please sign in to comment.