Remove logging from tests (#5192)

This commit is contained in:
David Perez 2025-05-14 12:50:55 -05:00 committed by GitHub
parent a97c962428
commit 119812507a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 12 deletions

View File

@ -9,10 +9,8 @@ import androidx.compose.ui.test.isPopup
import androidx.compose.ui.test.onAllNodesWithText
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.onRoot
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performScrollTo
import androidx.compose.ui.test.printToLog
import com.bitwarden.core.data.repository.util.bufferedMutableSharedFlow
import com.bitwarden.ui.util.asText
import com.x8bit.bitwarden.data.platform.repository.model.ClearClipboardFrequency
@ -171,7 +169,6 @@ class OtherScreenTest : BaseComposeTest() {
@Test
fun `should display correct items according to state`() {
mutableStateFlow.update { it.copy(isPreAuth = false) }
composeTestRule.onRoot().printToLog(tag = "BRIAN")
composeTestRule
.onNodeWithText(text = "Allow sync on refresh")
.assertExists()

View File

@ -12,10 +12,8 @@ import androidx.compose.ui.test.onAllNodesWithText
import androidx.compose.ui.test.onLast
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.onRoot
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performScrollTo
import androidx.compose.ui.test.printToLog
import com.bitwarden.core.data.repository.util.bufferedMutableSharedFlow
import com.x8bit.bitwarden.ui.platform.base.BaseComposeTest
import com.bitwarden.ui.util.asText
@ -123,7 +121,6 @@ class VaultMoveToOrganizationScreenTest : BaseComposeTest() {
@Test
fun `the organization option field description should update according to state`() {
composeTestRule.onRoot().printToLog("Brian")
composeTestRule
.onNodeWithContentDescription(label = "Choose an organization that", substring = true)
.assertIsDisplayed()
@ -172,7 +169,6 @@ class VaultMoveToOrganizationScreenTest : BaseComposeTest() {
@Test
fun `selecting an organization should send OrganizationSelect action`() {
composeTestRule.onRoot().printToLog("Brian")
composeTestRule
.onNodeWithContentDescriptionAfterScroll(
label = "mockOrganizationName-1. Organization. " +

View File

@ -2,10 +2,8 @@ package com.bitwarden.authenticator.ui.platform.feature.debugmenu
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.onRoot
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performScrollTo
import androidx.compose.ui.test.printToLog
import com.bitwarden.authenticator.data.platform.manager.model.FlagKey
import com.bitwarden.authenticator.ui.platform.base.BaseComposeTest
import com.bitwarden.core.data.repository.util.bufferedMutableSharedFlow
@ -44,9 +42,6 @@ class DebugMenuScreenTest : BaseComposeTest() {
@Test
fun `onNavigateBack should send action to viewModel`() {
composeTestRule
.onRoot()
.printToLog("djf")
composeTestRule
.onNodeWithContentDescription("Back")
.performClick()