diff --git a/Proton/Tests/Attachments/ViewAttachmentSnapshotTests.swift b/Proton/Tests/Attachments/ViewAttachmentSnapshotTests.swift index 3eb0f50d..4bde9a68 100644 --- a/Proton/Tests/Attachments/ViewAttachmentSnapshotTests.swift +++ b/Proton/Tests/Attachments/ViewAttachmentSnapshotTests.swift @@ -222,12 +222,13 @@ class ViewAttachmentSnapshotTests: SnapshotTestCase { } private func makeTextFieldAttachment(text: NSAttributedString) -> Attachment { - attachmentOffset = CGPoint(x: 0, y: -5) + attachmentOffset = CGPoint(x: 0, y: -4.5) let textField = AutogrowingTextField() let textFieldAttachment = Attachment(textField, size: .matchContent) textFieldAttachment.offsetProvider = self textField.attributedText = text - textField.borderStyle = .roundedRect + textField.layer.borderColor = UIColor.black.cgColor + textField.layer.borderWidth = 1 return textFieldAttachment } } diff --git a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testGetsFocussedChildView.1.png b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testGetsFocussedChildView.1.png index efaadc80..cee6f164 100644 Binary files a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testGetsFocussedChildView.1.png and b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testGetsFocussedChildView.1.png differ diff --git a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testReturnsNilForNonFocussedChildView.1.png b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testReturnsNilForNonFocussedChildView.1.png index efaadc80..cee6f164 100644 Binary files a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testReturnsNilForNonFocussedChildView.1.png and b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testReturnsNilForNonFocussedChildView.1.png differ diff --git a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithDisplay.1.png b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithDisplay.1.png index e7bc4b3b..a88160d4 100644 Binary files a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithDisplay.1.png and b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithDisplay.1.png differ diff --git a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithoutDisplay.1.png b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithoutDisplay.1.png index efaadc80..cee6f164 100644 Binary files a/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithoutDisplay.1.png and b/Proton/Tests/Attachments/__Snapshots__/ViewAttachmentSnapshotTests/testSetsSelectionWithoutDisplay.1.png differ