Last active
September 28, 2018 14:17
-
-
Save milanstevanovic/eefa9c29b8c0af888447867cbc1038e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SearchViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.makeViewTestable() | |
| } | |
| } | |
| extension SearchViewController: UITestablePage { | |
| typealias UIElementType = UIElements.Pages.SearchPage | |
| func makeViewTestable() { | |
| self.makeViewTestable(self.view, using: .root) | |
| self.makeViewTestable(self.searchButton, using: .startSearchButton) | |
| self.makeViewTestable(self.tableView, using: .tableView) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment