mirror of
https://github.com/bitwarden/android.git
synced 2025-12-11 04:39:19 -06:00
Remove logging from tests (#5192)
This commit is contained in:
parent
a97c962428
commit
119812507a
@ -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()
|
||||
|
||||
@ -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. " +
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user