Skip to content

Commit 6b51711

Browse files
committed
fix(e2e): disable dev mode as default in e2e tests
1 parent a7547db commit 6b51711

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/java/to/bitkit/data/SettingsStore.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ data class SettingsData(
8989
val isBiometricEnabled: Boolean = false,
9090
val isPinOnIdleEnabled: Boolean = false,
9191
val isPinForPaymentsEnabled: Boolean = false,
92-
val isDevModeEnabled: Boolean = Env.network != Network.BITCOIN,
92+
@Suppress("KotlinConstantConditions", "SimplifyBooleanWithConstants")
93+
val isDevModeEnabled: Boolean = !Env.isE2eTest && Env.network != Network.BITCOIN,
9394
val showWidgets: Boolean = true,
9495
val showWidgetTitles: Boolean = false,
9596
val lastUsedTags: List<String> = emptyList(),

app/src/main/java/to/bitkit/ui/settings/BackupSettingsScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private fun BackupSettingsScreenContent(
124124
color = Colors.White64,
125125
)
126126
FillWidth()
127-
@Suppress("SimplifyBooleanWithConstants", "KotlinConstantConditions")
127+
@Suppress("KotlinConstantConditions", "SimplifyBooleanWithConstants")
128128
if (Env.isE2eTest && allSynced) {
129129
Icon(
130130
painter = painterResource(R.drawable.ic_check_circle),

0 commit comments

Comments
 (0)