Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports DatePicker element #128

Merged
merged 6 commits into from
Aug 14, 2020
Merged

Supports DatePicker element #128

merged 6 commits into from
Aug 14, 2020

Conversation

roger-tan
Copy link
Contributor

What's in this PR?

This PR will add official support of DatePicker element and will resolve issue #55. This will help in future to support the new behaviour of Date Picker in iOS 14. #125


Pre-merge checklist

Before merging any PR, please check the following common things that should be done beforehand. These aren't all always required, so just check the box if it doesn't apply.

  • When adding files, make sure they're added to the right target. If you're adding new files that should be bundled up with Cocoapods etc, they need to be added to the TABTestKit target, not Pods-TABTestKit_Example etc.
  • Run pod install to ensure that the latest changes are in the Example project. Without this, Carthage might not see the latest changes.
  • Added and updated tests where possible. This isn't always possible but try wherever you can. The example app contains UI tests to test many of the TABTestKit features.
  • Updated the CHANGELOG. For any changes pending a release, add to the Pending section. For releases, move everything pending to the release section.
  • Updated the README. Add info for any new features, update existing info for anything that's changed or needs extra info.

@@ -67,6 +75,12 @@ final class OtherElementsController: UIViewController {

}

extension OtherElementsController: UITextFieldDelegate {
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
textField.resignFirstResponder()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to hide the keyboard for the picker after.

@@ -166,6 +167,94 @@ final class OtherElementsTests: TABTestCase, SystemPreferencesContext {
When(I: adjust(otherElementsScreen.picker.wheel(0), to: "World"))
Then(the: value(of: otherElementsScreen.picker.wheel(0), is: "World"))
}

Scenario("Seeing and interacting with the time picker") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple tests with differents variations of all date pickers (Date, Time, DateTime and Count Down Time)

@roger-tan roger-tan linked an issue Aug 13, 2020 that may be closed by this pull request
@roger-tan roger-tan merged commit 5efbaba into develop Aug 14, 2020
@roger-tan roger-tan deleted the feature/date-picker-support branch August 14, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for datepicker
3 participants