Skip to content

Commit 5c00b19

Browse files
committed
test(session-replay): Clarify comments in masking tests for UITextField and UITextView
1 parent 161f08b commit 5c00b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SentryTests/ViewCapture/SentryUIRedactBuilderTests+UIKit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ class SentryUIRedactBuilderTests_UIKit: SentryUIRedactBuilderTests { // swiftlin
259259
assertSnapshot(of: masked, as: .image)
260260

261261
let region1 = try XCTUnwrap(result.element(at: 0)) // _UITextLayoutCanvasView
262-
XCTAssertNil(region1.color)// The text color of UITextView is not used for redaction
262+
XCTAssertNil(region1.color) // The text color of UITextField is not used for redaction
263263
XCTAssertEqual(region1.size, CGSize(width: 0, height: 0))
264264
XCTAssertEqual(region1.type, .redact)
265265
XCTAssertEqual(region1.transform, CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 20, ty: 20))
266266

267267
let region2 = try XCTUnwrap(result.element(at: 1)) // UITextField
268-
XCTAssertNil(region2.color) // The text color of UITextView is not used for redaction
268+
XCTAssertNil(region2.color) // The text color of UITextField is not used for redaction
269269
XCTAssertEqual(region2.size, CGSize(width: 40, height: 40))
270270
XCTAssertEqual(region2.type, .redact)
271271
XCTAssertEqual(region2.transform, CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 20, ty: 20))

0 commit comments

Comments
 (0)