@@ -15,7 +15,6 @@ import androidx.compose.ui.test.onNodeWithText
1515import androidx.compose.ui.test.performClick
1616import com.openbitfun.mobile.app.ui.remote.CONNECT_ACCOUNT_DEVICE_REFRESH_TEST_TAG
1717import com.openbitfun.mobile.app.ui.remote.CONNECT_ACCOUNT_DEVICE_ROW_TEST_TAG_PREFIX
18- import com.openbitfun.mobile.app.ui.remote.CONNECT_ACCOUNT_DEVICE_SCAN_TEST_TAG
1918import com.openbitfun.mobile.app.ui.remote.ConnectAccountDeviceScreen
2019import com.openbitfun.mobile.app.ui.remote.AccountRemoteScreen
2120import com.openbitfun.mobile.app.ui.theme.OpenBitFunTheme
@@ -109,10 +108,9 @@ class AccountRemoteScreenTest {
109108 }
110109
111110 @Test
112- fun aSignedInAccountWithoutATargetCanRefreshSelectOrScan () {
111+ fun aSignedInAccountWithoutATargetCanRefreshOrSelect () {
113112 var refreshes = 0
114113 var selected = " "
115- var scans = 0
116114 composeRule.setContent {
117115 OpenBitFunTheme (dark = false ) {
118116 ConnectAccountDeviceScreen (
@@ -129,7 +127,6 @@ class AccountRemoteScreenTest {
129127 onBack = {},
130128 onRefresh = { refreshes + = 1 },
131129 onSelect = { selected = it },
132- onOpenScanner = { scans + = 1 },
133130 modifier = Modifier ,
134131 )
135132 }
@@ -139,11 +136,9 @@ class AccountRemoteScreenTest {
139136 composeRule.onNodeWithTag(CONNECT_ACCOUNT_DEVICE_REFRESH_TEST_TAG ).performClick()
140137 composeRule.onNodeWithTag(CONNECT_ACCOUNT_DEVICE_ROW_TEST_TAG_PREFIX + " desk-1" ).performClick()
141138 composeRule.onNodeWithTag(CONNECT_ACCOUNT_DEVICE_ROW_TEST_TAG_PREFIX + " desk-2" ).performClick()
142- composeRule.onNodeWithTag(CONNECT_ACCOUNT_DEVICE_SCAN_TEST_TAG ).performClick()
143139
144140 assertEquals(1 , refreshes)
145141 assertEquals(" desk-1" , selected)
146- assertEquals(1 , scans)
147142 }
148143
149144 @Test
@@ -165,7 +160,6 @@ class AccountRemoteScreenTest {
165160 onBack = {},
166161 onRefresh = {},
167162 onSelect = { selected = it },
168- onOpenScanner = {},
169163 modifier = Modifier ,
170164 )
171165 }
0 commit comments