diff --git a/core/core-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/test/screenshots/BasePaparazziTest.kt b/core/core-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/test/screenshots/BasePaparazziTest.kt deleted file mode 100644 index c0bd06507..000000000 --- a/core/core-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/test/screenshots/BasePaparazziTest.kt +++ /dev/null @@ -1,13 +0,0 @@ -package de.tum.informatics.www1.artemis.native_app.core.test.screenshots - -import app.cash.paparazzi.DeviceConfig -import app.cash.paparazzi.Paparazzi -import org.junit.Rule - -abstract class BasePaparazziTest { - - @get:Rule - val paparazzi = Paparazzi( - deviceConfig = DeviceConfig.PIXEL_6 - ) -} diff --git a/core/ui/src/debug/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/CourseImageProvider.kt b/core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/CourseImageProvider.kt similarity index 100% rename from core/ui/src/debug/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/CourseImageProvider.kt rename to core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/CourseImageProvider.kt diff --git a/core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/common/course/CourseListUi.kt b/core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/common/course/CourseListUi.kt index 302006d6d..661e46bde 100644 --- a/core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/common/course/CourseListUi.kt +++ b/core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/common/course/CourseListUi.kt @@ -36,7 +36,6 @@ import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.painter.Painter import androidx.compose.ui.graphics.vector.rememberVectorPainter -import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight @@ -45,8 +44,6 @@ import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.core.graphics.toColorInt -import coil.compose.rememberAsyncImagePainter -import coil.request.ImageRequest import de.tum.informatics.www1.artemis.native_app.core.model.Course import de.tum.informatics.www1.artemis.native_app.core.model.CourseWithScore import de.tum.informatics.www1.artemis.native_app.core.ui.LocalCourseImageProvider @@ -54,9 +51,6 @@ import de.tum.informatics.www1.artemis.native_app.core.ui.R import de.tum.informatics.www1.artemis.native_app.core.ui.common.AutoResizeText import de.tum.informatics.www1.artemis.native_app.core.ui.common.FontSizeRange import de.tum.informatics.www1.artemis.native_app.core.ui.getWindowSizeClass -import io.ktor.http.HttpHeaders -import io.ktor.http.URLBuilder -import io.ktor.http.appendPathSegments private val headerHeight = 80.dp diff --git a/feature/metis/manage-conversations/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/manageconversations/settings/ChannelSettingsE2eTest.kt b/feature/metis/manage-conversations/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/manageconversations/settings/ChannelSettingsE2eTest.kt index fe16541da..ddfaf50ef 100644 --- a/feature/metis/manage-conversations/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/manageconversations/settings/ChannelSettingsE2eTest.kt +++ b/feature/metis/manage-conversations/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/manageconversations/settings/ChannelSettingsE2eTest.kt @@ -15,7 +15,6 @@ import de.tum.informatics.www1.artemis.native_app.core.common.test.testServerUrl import de.tum.informatics.www1.artemis.native_app.feature.login.test.getAdminAccessToken import de.tum.informatics.www1.artemis.native_app.feature.login.test.user1Username import de.tum.informatics.www1.artemis.native_app.feature.metis.manageconversations.R -import de.tum.informatics.www1.artemis.native_app.feature.metis.manageconversations.ui.conversation.settings.overview.ConversationSettingsViewModel import kotlinx.coroutines.runBlocking import kotlinx.coroutines.withTimeout import org.junit.Test @@ -79,9 +78,9 @@ internal class ChannelSettingsE2eTest : ConversationSettingsBaseE2eTest() { } } - val viewModel = setupUiAndViewModel(channel) + setupUiAndViewModel(channel) - archiveOrUnarchiveChannelImpl(true, viewModel) + archiveOrUnarchiveChannelImpl(true) } @Test(timeout = DefaultTestTimeoutMillis) @@ -110,12 +109,12 @@ internal class ChannelSettingsE2eTest : ConversationSettingsBaseE2eTest() { } } - val viewModel = setupUiAndViewModel(channel) + setupUiAndViewModel(channel) - archiveOrUnarchiveChannelImpl(false, viewModel) + archiveOrUnarchiveChannelImpl(false) } - private fun archiveOrUnarchiveChannelImpl(archive: Boolean, viewModel: ConversationSettingsViewModel) { + private fun archiveOrUnarchiveChannelImpl(archive: Boolean) { val doArchiveButtonText = context.getString(R.string.conversation_settings_section_other_archive_channel) val doUnarchiveButtonText =