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

Enter time input correctly #726

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Enter time input correctly #726

merged 1 commit into from
Jul 14, 2023

Conversation

BryceStevenWilley
Copy link
Collaborator

The default text doesn't enter time inputs correct for a few reasons:

  • The text input doesn't expected you to type ":", spaces, or the "M" in "AM" or "PM". The space specifically seems to mess up inputs.
  • You need to key press "Enter" after entering the time, otherwise moving focus will erase the current input.

This change filters the time value given to remove ":", " ", and "M", and also adds an Enter keypress to make sure the value is entered correctly.

I added a new YML, because the input needs to be required for us to actually test it, and I can't make it required with 5 different tests all trying to use all_tests.yml for the same thing, so I split it out instead.

The default text doesn't enter time inputs correct for a few reasons:

* The text input doesn't expected you to type ":", spaces, or the "M" in
  "AM" or "PM". The space specifically seems to mess up inputs.
* You need to key press "Enter" after entering the time, otherwise moving
  focus will erase the current input.

This change filters the time value given to remove ":", " ", and "M",
and also adds an Enter keypress to make sure the value is entered correctly.
Copy link
Collaborator

@plocket plocket left a comment

Choose a reason for hiding this comment

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

This is great! And I love the new test file and that it passes! We should make an issue to add time to random inputs too as we work on that Step.

@plocket
Copy link
Collaborator

plocket commented Jul 14, 2023

Reminder to myself to edit the CHANGELOG when publishing.

@BryceStevenWilley
Copy link
Collaborator Author

We should make an issue to add time to random inputs too as we work on that Step.

#729 is made!

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.

2 participants