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

Fixed failing DateTimePicker Unit test. #41483

Merged
merged 1 commit into from
Jun 2, 2022
Merged

Conversation

torounit
Copy link
Member

@torounit torounit commented Jun 1, 2022

What?

fix: #41480

Fixed failing DateTimePicker Unit test.

Why?

Tests dependent on the current date are failing, and tests fail on all branches.

How?

Within the unit test, the month name was being retrieved as an abbreviation.

"May" seems to have passed the test because it is three characters long.

Testing Instructions

  • Check unit test.

@torounit torounit marked this pull request as ready for review June 1, 2022 16:18
@torounit torounit requested a review from ajitbohra as a code owner June 1, 2022 16:18
@torounit torounit self-assigned this Jun 1, 2022
@torounit torounit added the [Package] Components /packages/components label Jun 1, 2022
@torounit torounit changed the title fix date-time unit test Fixed failing DateTimePicker Unit test. Jun 1, 2022
@torounit torounit added the [Type] Bug An existing feature does not function as intended label Jun 1, 2022
@torounit torounit requested a review from noisysocks June 1, 2022 22:54
Copy link
Contributor

@andrewserong andrewserong left a comment

Choose a reason for hiding this comment

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

Great catch, thanks so much for fixing this @torounit!

LGTM, this updated test now matches the formatting used in the component , and the tests pass. 🎉

@andrewserong andrewserong merged commit 751569a into trunk Jun 2, 2022
@andrewserong andrewserong deleted the fix/date-time/unit-test branch June 2, 2022 00:48
@github-actions github-actions bot added this to the Gutenberg 13.5 milestone Jun 2, 2022
@annezazu annezazu added [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. and removed [Type] Bug An existing feature does not function as intended labels Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit test is broken.
3 participants