Skip to content

Commit

Permalink
replace deprecated performGesture and optimize import
Browse files Browse the repository at this point in the history
  • Loading branch information
wiryadev committed Jun 30, 2022
1 parent f76bd79 commit ea8902d
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,13 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Text
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.semantics.testTag
import androidx.compose.ui.test.assertCountEquals
import androidx.compose.ui.test.assertHeightIsEqualTo
import androidx.compose.ui.test.centerX
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.height
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.moveBy
import androidx.compose.ui.test.onAllNodesWithTag
import androidx.compose.ui.test.onFirst
import androidx.compose.ui.test.performGesture
import androidx.compose.ui.test.performScrollTo
import androidx.compose.ui.test.swipe
import androidx.compose.ui.test.performTouchInput
import androidx.compose.ui.test.swipeUp
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.dp
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlin.math.abs
Expand Down Expand Up @@ -103,7 +93,7 @@ class CollapsingToolbarTest {
.assertHeightIsEqualTo(300.dp)

rule.onNode(hasTestTag("contentList"))
.performGesture {
.performTouchInput {
swipeUp()
}

Expand Down

0 comments on commit ea8902d

Please sign in to comment.