This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val defaultTextColor: Color | |
@Composable | |
@ReadOnlyComposable | |
get() = if (isSystemInDarkTheme()) AP_White else AP_Ink | |
val defaultSecondaryTextColor: Color | |
@Composable | |
@ReadOnlyComposable | |
get() = if (isSystemInDarkTheme()) AP_Smoke else AP_Iron |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Config(application = PostApp::class, instrumentedPackages = ["androidx.loader.content"]) | |
class AccountDetailsActivityTest : | |
RobolectricTestBase<AccountDetailsActivity>(AccountDetailsActivity::class) { | |
@get:Rule | |
val composeTestRule = createComposeRule() | |
private lateinit var page: AccountDetailsPage | |
@Before |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AccountDetailsPage constructor(private val composeTestRule: ComposeContentTestRule) { | |
val personalDetails: PersonalDetails | |
get() = | |
with(composeTestRule) { | |
PersonalDetails( | |
preferredName = TitleValue( | |
title = onNestedChild(UiAssert.stringRes(R.string.glam_preferred_name), "txt_title"), | |
value = onNestedChild(UiAssert.stringRes(R.string.glam_preferred_name), "txt_subtitle") | |
), | |
lastName = TitleValue( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APText( | |
modifier = Modifier | |
.testTag("txt_title") | |
.padding(top = 6.dp, bottom = 4.dp), | |
apStyle = textStyle, text = text, textColor = textColor | |
) |
OlderNewer