-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID-14530 Fix checkbox colors (#344)
* ANDROID-14530 Fix checkbox compose colors and add tests * ANDROID-14530 Fix checkbox xml colors * Updated screenshots baseline * ANDROID-14530 Fix typo --------- Co-authored-by: yamal-alm <[email protected]>
- Loading branch information
Showing
201 changed files
with
298 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
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.
Binary file added
BIN
+9.73 KB
library/screenshots/CheckBoxInputXML_BlauBrand__disabled_checked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.41 KB
library/screenshots/CheckBoxInputXML_BlauBrand__disabled_unchecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.51 KB
library/screenshots/CheckBoxInputXML_BlauBrand__disabled_unchecked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
library/screenshots/CheckBoxInputXML_BlauBrand__errorText_checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.5 KB
library/screenshots/CheckBoxInputXML_BlauBrand__errorText_checked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInputXML_BlauBrand__errorText_disabled_checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.4 KB
...ary/screenshots/CheckBoxInputXML_BlauBrand__errorText_disabled_checked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.3 KB
library/screenshots/CheckBoxInputXML_BlauBrand__errorText_disabled_unchecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.2 KB
...y/screenshots/CheckBoxInputXML_BlauBrand__errorText_disabled_unchecked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.4 KB
library/screenshots/CheckBoxInputXML_BlauBrand__errorText_unchecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.3 KB
library/screenshots/CheckBoxInputXML_BlauBrand__errorText_unchecked_dark.png
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.
Binary file added
BIN
+9.57 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__disabled_checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__disabled_checked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.34 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__disabled_unchecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.94 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__disabled_unchecked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.2 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__errorText_checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__errorText_checked_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.3 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__errorText_disabled_checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.9 KB
...screenshots/CheckBoxInputXML_MovistarBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12 KB
...ry/screenshots/CheckBoxInputXML_MovistarBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
...reenshots/CheckBoxInputXML_MovistarBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+14 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+11.4 KB
library/screenshots/CheckBoxInputXML_MovistarBrand__unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.54 KB
library/screenshots/CheckBoxInputXML_O2Brand__disabled_checked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.35 KB
library/screenshots/CheckBoxInputXML_O2Brand__disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
library/screenshots/CheckBoxInputXML_O2Brand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInputXML_O2Brand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
library/screenshots/CheckBoxInputXML_O2Brand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.4 KB
library/screenshots/CheckBoxInputXML_O2Brand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
...ary/screenshots/CheckBoxInputXML_O2Brand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
library/screenshots/CheckBoxInputXML_O2Brand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
library/screenshots/CheckBoxInputXML_O2Brand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+11.7 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+9.36 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+9.68 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+9.17 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+9.51 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__errorText_checked.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
...ry/screenshots/CheckBoxInputXML_TelefonicaBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
...reenshots/CheckBoxInputXML_TelefonicaBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
.../screenshots/CheckBoxInputXML_TelefonicaBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
...enshots/CheckBoxInputXML_TelefonicaBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+11.5 KB
library/screenshots/CheckBoxInputXML_TelefonicaBrand__unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+10.1 KB
library/screenshots/CheckBoxInputXML_TuBrand__disabled_checked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.89 KB
library/screenshots/CheckBoxInputXML_TuBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
library/screenshots/CheckBoxInputXML_TuBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
library/screenshots/CheckBoxInputXML_TuBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
library/screenshots/CheckBoxInputXML_TuBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
library/screenshots/CheckBoxInputXML_TuBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
...ary/screenshots/CheckBoxInputXML_TuBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
library/screenshots/CheckBoxInputXML_TuBrand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
library/screenshots/CheckBoxInputXML_TuBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.62 KB
library/screenshots/CheckBoxInputXML_VivoBrand__disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+9.47 KB
library/screenshots/CheckBoxInputXML_VivoBrand__disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+9.43 KB
library/screenshots/CheckBoxInputXML_VivoBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
library/screenshots/CheckBoxInputXML_VivoBrand__errorText_checked.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
library/screenshots/CheckBoxInputXML_VivoBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInputXML_VivoBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
...ary/screenshots/CheckBoxInputXML_VivoBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.4 KB
library/screenshots/CheckBoxInputXML_VivoBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
...y/screenshots/CheckBoxInputXML_VivoBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
library/screenshots/CheckBoxInputXML_VivoBrand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
library/screenshots/CheckBoxInputXML_VivoBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.92 KB
library/screenshots/CheckBoxInput_BlauBrand__disabled_checked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.66 KB
library/screenshots/CheckBoxInput_BlauBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
library/screenshots/CheckBoxInput_BlauBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
library/screenshots/CheckBoxInput_BlauBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
library/screenshots/CheckBoxInput_BlauBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
library/screenshots/CheckBoxInput_BlauBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.4 KB
library/screenshots/CheckBoxInput_BlauBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
library/screenshots/CheckBoxInput_BlauBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.87 KB
library/screenshots/CheckBoxInput_MovistarBrand__disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
library/screenshots/CheckBoxInput_MovistarBrand__disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+9.73 KB
library/screenshots/CheckBoxInput_MovistarBrand__disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
library/screenshots/CheckBoxInput_MovistarBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+13.6 KB
library/screenshots/CheckBoxInput_MovistarBrand__errorText_checked.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
library/screenshots/CheckBoxInput_MovistarBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInput_MovistarBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
...ry/screenshots/CheckBoxInput_MovistarBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
library/screenshots/CheckBoxInput_MovistarBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+13.1 KB
.../screenshots/CheckBoxInput_MovistarBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
library/screenshots/CheckBoxInput_MovistarBrand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
library/screenshots/CheckBoxInput_MovistarBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.71 KB
library/screenshots/CheckBoxInput_O2Brand__disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
library/screenshots/CheckBoxInput_O2Brand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
library/screenshots/CheckBoxInput_O2Brand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
library/screenshots/CheckBoxInput_O2Brand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInput_O2Brand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+13.8 KB
library/screenshots/CheckBoxInput_O2Brand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.64 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+9.53 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+10 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__errorText_checked.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
.../screenshots/CheckBoxInput_TelefonicaBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
...ary/screenshots/CheckBoxInput_TelefonicaBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+13 KB
...creenshots/CheckBoxInput_TelefonicaBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Binary file added
BIN
+13.6 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__errorText_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+14.2 KB
library/screenshots/CheckBoxInput_TelefonicaBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+14.2 KB
library/screenshots/CheckBoxInput_TuBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInput_TuBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+13.1 KB
library/screenshots/CheckBoxInput_TuBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
library/screenshots/CheckBoxInput_TuBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
library/screenshots/CheckBoxInput_TuBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+14 KB
library/screenshots/CheckBoxInput_TuBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.8 KB
library/screenshots/CheckBoxInput_VivoBrand__disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+14 KB
library/screenshots/CheckBoxInput_VivoBrand__errorText_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
library/screenshots/CheckBoxInput_VivoBrand__errorText_disabled_checked.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
library/screenshots/CheckBoxInput_VivoBrand__errorText_disabled_checked_dark.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
library/screenshots/CheckBoxInput_VivoBrand__errorText_disabled_unchecked.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
library/screenshots/CheckBoxInput_VivoBrand__errorText_disabled_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+13.8 KB
library/screenshots/CheckBoxInput_VivoBrand__errorText_unchecked_dark.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
100 changes: 100 additions & 0 deletions
100
library/src/test/java/com/telefonica/mistica/compose/input/CheckBoxInputTest.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
package com.telefonica.mistica.compose.input | ||
|
||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material.Surface | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.compose.ui.test.onRoot | ||
import androidx.compose.ui.unit.dp | ||
import com.telefonica.mistica.compose.theme.MisticaTheme | ||
import com.telefonica.mistica.compose.theme.brand.Brand | ||
import com.telefonica.mistica.testutils.ScreenshotsTest | ||
import com.telefonica.mistica.testutils.TestUtils | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.robolectric.ParameterizedRobolectricTestRunner | ||
import org.robolectric.ParameterizedRobolectricTestRunner.Parameters | ||
|
||
@RunWith(ParameterizedRobolectricTestRunner::class) | ||
class CheckBoxInputTest( | ||
private val brand: Brand, | ||
private val checked: Boolean, | ||
private val isEnabled: Boolean, | ||
private val errorText: String?, | ||
private val darkTheme: Boolean, | ||
) : ScreenshotsTest() { | ||
@get:Rule | ||
val composeTestRule = createComposeRule() | ||
|
||
@Test | ||
fun `CheckBoxInput compose screenshot`() { | ||
composeTestRule.setContent { | ||
MisticaTheme(brand = brand, darkTheme = darkTheme) { | ||
Surface( | ||
color = MisticaTheme.colors.background | ||
) { | ||
CheckBoxInput( | ||
modifier = Modifier.padding(16.dp), | ||
text = "Some text with terms and conditions", | ||
links = listOf( | ||
TextLink(link = "terms and conditions", onLinkTapped = {}), | ||
), | ||
checked = checked, | ||
onCheckedChange = {}, | ||
errorText = errorText, | ||
enabled = isEnabled, | ||
) | ||
} | ||
} | ||
} | ||
|
||
val screenshotSuffix = StringBuilder() | ||
if (errorText != null) { | ||
screenshotSuffix.append("_errorText") | ||
} | ||
if (!isEnabled) { | ||
screenshotSuffix.append("_disabled") | ||
} | ||
|
||
if (checked) { | ||
screenshotSuffix.append("_checked") | ||
} else { | ||
screenshotSuffix.append("_unchecked") | ||
} | ||
|
||
compareScreenshot( | ||
node = composeTestRule.onRoot(), | ||
component = "CheckBoxInput", | ||
style = null, | ||
brand = brand, | ||
darkTheme = darkTheme, | ||
extra = screenshotSuffix.toString() | ||
) | ||
} | ||
|
||
companion object { | ||
@Suppress("UNUSED") | ||
@JvmStatic | ||
@Parameters | ||
fun brands(): List<Array<Any?>> { | ||
val brands = TestUtils.getAllBrands() | ||
val enabled = arrayOf(false, true) | ||
val checked = arrayOf(false, true) | ||
val errorTexts = arrayOf(null, "Some error text") | ||
val darkTheme = arrayOf(false, true) | ||
|
||
return brands.flatMap { brand -> | ||
enabled.flatMap { isEnabled -> | ||
checked.flatMap { isChecked -> | ||
errorTexts.flatMap { errorText -> | ||
darkTheme.map { darkTheme -> | ||
arrayOf(brand, isEnabled, isChecked, errorText, darkTheme) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
121 changes: 121 additions & 0 deletions
121
library/src/test/java/com/telefonica/mistica/input/CheckBoxInputTest.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
package com.telefonica.mistica.input | ||
|
||
import android.content.Intent | ||
import android.text.Spannable | ||
import android.text.SpannableString | ||
import android.text.Spanned | ||
import android.text.method.LinkMovementMethod | ||
import android.text.style.ClickableSpan | ||
import android.view.View | ||
import android.widget.FrameLayout | ||
import androidx.test.core.app.ApplicationProvider | ||
import androidx.test.espresso.Espresso | ||
import androidx.test.espresso.matcher.ViewMatchers | ||
import androidx.test.ext.junit.rules.activityScenarioRule | ||
import com.telefonica.mistica.DummyActivity | ||
import com.telefonica.mistica.R | ||
import com.telefonica.mistica.compose.theme.brand.Brand | ||
import com.telefonica.mistica.testutils.ScreenshotsTest | ||
import com.telefonica.mistica.testutils.TestUtils | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.robolectric.ParameterizedRobolectricTestRunner | ||
import org.robolectric.annotation.Config | ||
|
||
@RunWith(ParameterizedRobolectricTestRunner::class) | ||
class CheckBoxInputTest( | ||
private val brand: Brand, | ||
private val checked: Boolean, | ||
private val isEnabled: Boolean, | ||
private val errorText: String?, | ||
) : ScreenshotsTest() { | ||
private val intent = Intent(ApplicationProvider.getApplicationContext(), DummyActivity::class.java).apply { | ||
this.putExtra(DummyActivity.EXTRA_THEME, TestUtils.getBaseThemeForBrand(brand)) | ||
} | ||
|
||
@get:Rule | ||
val rule = activityScenarioRule<DummyActivity>(intent) | ||
|
||
@Test | ||
fun `CheckBoxInput XML screenshot light`() { | ||
`compare CheckBoxInput XML screenshot`(darkTheme = false) | ||
} | ||
|
||
@Config(qualifiers = "+night") | ||
@Test | ||
fun `CheckBoxInput XML screenshot dark`() { | ||
`compare CheckBoxInput XML screenshot`(darkTheme = true) | ||
} | ||
|
||
private fun `compare CheckBoxInput XML screenshot`(darkTheme: Boolean) { | ||
rule.scenario.onActivity { activity -> | ||
val wrapper: FrameLayout = activity.findViewById(R.id.dummy_activity_wrapper) | ||
val checkbox = CheckBoxInput(activity).apply { | ||
setChecked(checked) | ||
error = errorText | ||
setText(createSpannableText()) | ||
setMovementMethod(LinkMovementMethod.getInstance()) | ||
isEnabled = this@CheckBoxInputTest.isEnabled | ||
} | ||
|
||
wrapper.removeAllViews() | ||
wrapper.addView(checkbox) | ||
|
||
val screenshotSuffix = StringBuilder() | ||
if (errorText != null) { | ||
screenshotSuffix.append("_errorText") | ||
} | ||
if (!isEnabled) { | ||
screenshotSuffix.append("_disabled") | ||
} | ||
|
||
if (checked) { | ||
screenshotSuffix.append("_checked") | ||
} else { | ||
screenshotSuffix.append("_unchecked") | ||
} | ||
|
||
compareScreenshot( | ||
node = Espresso.onView(ViewMatchers.withId(R.id.dummy_activity_wrapper)), | ||
component = "CheckBoxInputXML", | ||
style = null, | ||
brand = brand, | ||
darkTheme = darkTheme, | ||
extra = screenshotSuffix.toString() | ||
) | ||
} | ||
} | ||
|
||
private fun createSpannableText(): Spannable { | ||
val termsAndConditions = "terms and conditions" | ||
val message = "Some text with $termsAndConditions" | ||
return SpannableString(message).apply { | ||
setSpan(dummyClickableSpan, message.indexOf(termsAndConditions), message.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) | ||
} | ||
} | ||
|
||
companion object { | ||
@Suppress("UNUSED") | ||
@JvmStatic | ||
@ParameterizedRobolectricTestRunner.Parameters | ||
fun brands(): List<Array<Any?>> { | ||
val brands = TestUtils.getAllBrands() | ||
val enabled = arrayOf(false, true) | ||
val checked = arrayOf(false, true) | ||
val errorTexts = arrayOf(null, "Some error text") | ||
|
||
return brands.flatMap { brand -> | ||
enabled.flatMap { isEnabled -> | ||
checked.flatMap { isChecked -> | ||
errorTexts.map { errorText -> | ||
arrayOf(brand, isEnabled, isChecked, errorText) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
private val dummyClickableSpan = object : ClickableSpan() { override fun onClick(widget: View) {} } | ||
} | ||
} |
Oops, something went wrong.