diff --git a/core/Sources/Components/Button/View/ButtonUIViewTests.swift b/core/Sources/Components/Button/View/ButtonUIViewTests.swift index 803230639..49e5ee9a8 100644 --- a/core/Sources/Components/Button/View/ButtonUIViewTests.swift +++ b/core/Sources/Components/Button/View/ButtonUIViewTests.swift @@ -57,6 +57,24 @@ final class ButtonUIViewTests: UIKitComponentTestCase { } } } + + func test_pressed() throws { + for variant in variants { + for intent in intents { + let button = ButtonUIView( + theme: theme, + text: "Pressed button", + state: .enabled, + variant: variant, + intentColor: intent + ) + button.isPressed = true + + let identifier = "\(variant.identifier)-\(intent.identifier)" + assertSnapshotInDarkAndLight(matching: button, named: identifier) + } + } + } } // MARK: - Private extension