Fix SettingsPagerTest#twoPage_initialState

Also update androidx.compose to 1.4.0-alpha03

Fix: 262781494
Test: Unit tests
Change-Id: Ia09a23c10c306e3218ea2a05e27e959304e7430e
This commit is contained in:
Chaohui Wang
2022-12-17 00:23:50 +08:00
parent 8a046adeba
commit 21839f29be
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ buildscript {
BUILD_TOOLS_VERSION = "30.0.3"
MIN_SDK = 21
TARGET_SDK = 33
jetpack_compose_version = '1.4.0-alpha01'
jetpack_compose_version = '1.4.0-alpha03'
jetpack_compose_compiler_version = '1.3.2'
}
}

View File

@@ -75,7 +75,7 @@ dependencies {
api "androidx.slice:slice-builders:1.1.0-alpha02"
api "androidx.slice:slice-core:1.1.0-alpha02"
api "androidx.slice:slice-view:1.1.0-alpha02"
api "androidx.compose.material3:material3:1.1.0-alpha01"
api "androidx.compose.material3:material3:1.1.0-alpha03"
api "androidx.compose.material:material-icons-extended:$jetpack_compose_version"
api "androidx.compose.runtime:runtime-livedata:$jetpack_compose_version"
api "androidx.compose.ui:ui-tooling-preview:$jetpack_compose_version"

View File

@@ -41,7 +41,7 @@ class SettingsPagerTest {
composeTestRule.onNodeWithText("Personal").assertIsSelected()
composeTestRule.onNodeWithText("Page 0").assertIsDisplayed()
composeTestRule.onNodeWithText("Work").assertIsNotSelected()
composeTestRule.onNodeWithText("Page 1").assertIsNotDisplayed()
composeTestRule.onNodeWithText("Page 1").assertDoesNotExist()
}
@Test