File tree Expand file tree Collapse file tree
sentry-android-replay/src/test/java/io/sentry/android/replay/viewhierarchy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,19 +231,21 @@ class ComposeMaskingOptionsTest {
231231 // only assert masking on visible nodes — the production code's contract is
232232 // shouldMask = isVisible && ..., so invisible nodes (e.g. due to Robolectric
233233 // intermittently reporting zero bounds) correctly have shouldMask=false
234- textNodes.filter { it.isVisible }.forEach {
235- if ((it.layout as ? ComposeTextLayout )?.layout?.layoutInput?.text?.text == " Make Request" ) {
236- assertFalse(
237- it.shouldMask,
238- " Node with text ${(it.layout as ? ComposeTextLayout )?.layout?.layoutInput?.text?.text} should not be masked" ,
239- )
240- } else {
241- assertTrue(
242- it.shouldMask,
243- " Node with text ${(it.layout as ? ComposeTextLayout )?.layout?.layoutInput?.text?.text} should be masked" ,
244- )
234+ textNodes
235+ .filter { it.isVisible }
236+ .forEach {
237+ if ((it.layout as ? ComposeTextLayout )?.layout?.layoutInput?.text?.text == " Make Request" ) {
238+ assertFalse(
239+ it.shouldMask,
240+ " Node with text ${(it.layout as ? ComposeTextLayout )?.layout?.layoutInput?.text?.text} should not be masked" ,
241+ )
242+ } else {
243+ assertTrue(
244+ it.shouldMask,
245+ " Node with text ${(it.layout as ? ComposeTextLayout )?.layout?.layoutInput?.text?.text} should be masked" ,
246+ )
247+ }
245248 }
246- }
247249 }
248250
249251 @Test
You can’t perform that action at this time.
0 commit comments