Skip to content

Commit 6a12392

Browse files
author
Automerger
committed
Merge branch 'github/main'
2 parents 2bb2d0f + e807f5a commit 6a12392

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

app/src/androidTest/java/com/google/samples/apps/nowinandroid/ui/NavigationTest.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ package com.google.samples.apps.nowinandroid.ui
1919
import androidx.compose.ui.test.assertCountEquals
2020
import androidx.compose.ui.test.assertIsOn
2121
import androidx.compose.ui.test.assertIsSelected
22+
import androidx.compose.ui.test.hasAnyAncestor
23+
import androidx.compose.ui.test.hasTestTag
24+
import androidx.compose.ui.test.hasText
2225
import androidx.compose.ui.test.junit4.createAndroidComposeRule
2326
import androidx.compose.ui.test.onAllNodesWithText
24-
import androidx.compose.ui.test.onLast
2527
import androidx.compose.ui.test.onNodeWithContentDescription
2628
import androidx.compose.ui.test.onNodeWithText
2729
import androidx.compose.ui.test.performClick
@@ -213,7 +215,12 @@ class NavigationTest {
213215
onNodeWithText(ok).performClick()
214216

215217
// Check that the saved screen is still visible and selected.
216-
onAllNodesWithText(saved).onLast().assertIsSelected()
218+
onNode(
219+
hasText(saved) and
220+
hasAnyAncestor(
221+
hasTestTag("NiaBottomBar") or hasTestTag("NiaNavRail"),
222+
),
223+
).assertIsSelected()
217224
}
218225
}
219226

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
accompanist = "0.28.0"
33
androidDesugarJdkLibs = "1.2.2"
4-
androidGradlePlugin = "7.4.0"
4+
androidGradlePlugin = "7.4.1"
55
androidxActivity = "1.6.1"
66
androidxAppCompat = "1.5.1"
77
androidxBrowser = "1.4.0"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616
plugins {
17-
id 'java-library'
18-
id 'kotlin'
19-
id 'com.android.lint'
17+
`java-library`
18+
kotlin("jvm")
19+
id("com.android.lint")
2020
}
2121

2222
java {
@@ -25,6 +25,6 @@ java {
2525
}
2626

2727
dependencies {
28-
compileOnly libs.kotlin.stdlib
29-
compileOnly libs.lint.api
28+
compileOnly(libs.kotlin.stdlib)
29+
compileOnly(libs.lint.api)
3030
}

0 commit comments

Comments
 (0)