CMSgov / bluebutton-web-server

Blue Button API
https://sandbox.bluebutton.cms.gov
Other
40 stars 24 forks source link

BB2-3327: Fix date comparisons in selenium tests #1240

Closed jimmyfagan closed 2 months ago

jimmyfagan commented 2 months ago

JIRA Ticket: BB2-3327

What Does This PR Do?

This PR edits some of the details in the date testing for selenium tests to allow them to pass more predictably and consistently.

What Should Reviewers Watch For?

Do the tests still pass with these changes? If errors are purposefully added such that the tests fail are the error messages helpful?

Validation

You should be able to run selenium tests to verify the changes still work. Since we're in September now, and October was previously working, it is slightly harder to verify, but feel free to change the list of month abbreviations locally to see what happens.

I've also gone through and changed the end date calculation to verify the possibilities for date abbreviations for all months. Including those here:

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

Any Migrations?