Alex Styl
10/08/2025, 7:46 AMonNodeWithTag("long_press_target").performTouchInput {
down(center)
}
onNodeWithTag("long_press_target").assertIsNotFocused() // <- fails because the down() gave it focus, while it shouldn't
seb
10/08/2025, 12:11 PMseb
10/08/2025, 12:11 PMAlex Styl
10/08/2025, 12:24 PMIf the component is focusable this is correctby 'this' you mean touching it giving it focus? if that is true, how come the behavior is different when running the app on a device?
seb
10/08/2025, 12:29 PMseb
10/08/2025, 12:30 PMseb
10/08/2025, 12:30 PMseb
10/08/2025, 12:31 PMAlex Styl
10/08/2025, 12:33 PMAlex Styl
10/08/2025, 12:47 PMseb
10/08/2025, 12:57 PMseb
10/08/2025, 12:58 PMAlex Vanyo
10/08/2025, 4:17 PMAlex Vanyo
10/08/2025, 4:19 PMThat is not different than how it works in a device. A focusable component grabs focus on mouse downThis is not true on Android, Compose for Desktop works differently here
seb
10/08/2025, 6:30 PMAlex Vanyo
10/08/2025, 9:21 PMAlex Styl
10/09/2025, 3:19 AMAlex Styl
10/09/2025, 3:28 AMAlex Vanyo
10/09/2025, 4:07 PMAlex Vanyo
10/09/2025, 4:09 PMAlex Styl
10/10/2025, 4:13 AM