From d89b9e3a47b59c01f3dbc2b7d8790693b3fedfbc Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Mon, 28 Sep 2026 07:25:35 +0000 Subject: [PATCH] drop the concurrency dialog test --- .../settings/SettingsConcurrencyDialogTest.kt | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 app/src/test/kotlin/com/subtracks/ui/settings/SettingsConcurrencyDialogTest.kt diff --git a/app/src/test/kotlin/com/subtracks/ui/settings/SettingsConcurrencyDialogTest.kt b/app/src/test/kotlin/com/subtracks/ui/settings/SettingsConcurrencyDialogTest.kt deleted file mode 100644 index 505ab15e..00000000 --- a/app/src/test/kotlin/com/subtracks/ui/settings/SettingsConcurrencyDialogTest.kt +++ /dev/null @@ -1,56 +0,0 @@ -package com.subtracks.ui.settings - -import androidx.activity.ComponentActivity -import androidx.compose.ui.test.junit4.v2.createAndroidComposeRule -import androidx.compose.ui.test.onNodeWithText -import androidx.compose.ui.test.performClick -import androidx.test.ext.junit.runners.AndroidJUnit4 -import com.github.takahirom.roborazzi.RobolectricDeviceQualifiers -import com.subtracks.data.prefs.StreamQuality -import com.subtracks.ui.theme.SubtracksTheme -import org.junit.Assert.assertTrue -import org.junit.Rule -import org.junit.Test -import org.junit.runner.RunWith -import org.robolectric.annotation.Config -import org.robolectric.annotation.GraphicsMode - -@RunWith(AndroidJUnit4::class) -@GraphicsMode(GraphicsMode.Mode.NATIVE) -@Config(qualifiers = RobolectricDeviceQualifiers.PixelXL) -class SettingsConcurrencyDialogTest { - @get:Rule - val composeRule = createAndroidComposeRule() - - @Test - fun theConcurrencyDialogListsEachPresetOnItsOwnRow() { - composeRule.setContent { - SubtracksTheme { - SettingsScreen( - sources = emptyList(), - activeSourceId = null, - wifiQuality = StreamQuality(), - mobileQuality = StreamQuality(), - syncConcurrency = 5, - onSelectSource = {}, - onDeleteSource = {}, - onWifiQualityChange = {}, - onMobileQualityChange = {}, - onSyncConcurrencyChange = {}, - onAddServer = {}, - onBack = {}, - ) - } - } - - composeRule.onNodeWithText("Sync concurrency").performClick() - - val rows = - listOf("1 (sequential)", "2", "4", "8", "16").map { - composeRule.onNodeWithText(it).fetchSemanticsNode().boundsInRoot - } - rows.zipWithNext().forEach { (above, below) -> - assertTrue("concurrency options overlap: $above vs $below", below.top >= above.bottom) - } - } -}