Skip to content

Commit b4a7034

Browse files
romtsnclaude
andcommitted
fix(test): Expect no screenshot when masking configured without replay module
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4465657 commit b4a7034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry-android-core/src/test/java/io/sentry/android/core/ScreenshotEventProcessorTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class ScreenshotEventProcessorTest {
339339
}
340340

341341
@Test
342-
fun `when masking is configured but replay is not available, screenshot is still captured without masking`() {
342+
fun `when masking is configured but replay is not available, screenshot is not captured`() {
343343
val sut = fixture.getSut(attachScreenshot = true, isReplayAvailable = false)
344344
fixture.options.screenshot.setMaskAllText(true)
345345
val hint = Hint()
@@ -349,7 +349,7 @@ class ScreenshotEventProcessorTest {
349349
val event = fixture.mainProcessor.process(getEvent(), hint)
350350
sut.process(event, hint)
351351

352-
assertNotNull(hint.screenshot)
352+
assertNull(hint.screenshot)
353353
}
354354

355355
@Test

0 commit comments

Comments
 (0)