mitodl / micromasters

Portal for learners and course teams to access MITx Micromasters® programs
https://mm.mit.edu
BSD 3-Clause "New" or "Revised" License
28 stars 16 forks source link

Have uniform date styling on Program page. #5266

Closed collinpreston closed 1 year ago

collinpreston commented 1 year ago

Pre-Flight checklist

What are the relevant tickets?

https://github.com/mitodl/micromasters/issues/5254

What's this PR do?

Makes sure that all the dates on the program pages are formatted the same way (DD-MMM-YYYY).

How should this be manually tested?

  1. Have your micromasters up and running with a staff user that you can login with.
  2. Seed your database or create courses, course runs (that start in the future), and a program which references your created courses. It would be best to pick different months for the start dates of each course run.
  3. Access CMS (http://mm.odl.local:8079/) and add a child page (Program page) to the main page.
  4. Set the program field to the program you created in step 2.
  5. Add two or more program courses that you created in step 2.
  6. Create a couple future semesters with a random title and a date set in the future.
  7. Publish the program page.
  8. Within CMS, click the "View Live" button on the program page you published in step 7.
  9. Verify that all of the dates shown in the "Courses" and "Future Courses" list sections only show 3 letters for the month.

Any background context you want to provide?

Helpful resources:

Screenshots (if appropriate)

Screen Shot 2022-12-06 at 11 46 14

codecov-commenter commented 1 year ago

Codecov Report

Merging #5266 (d483a70) into master (22fde05) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5266   +/-   ##
=======================================
  Coverage   93.68%   93.68%           
=======================================
  Files         501      501           
  Lines       23273    23273           
  Branches      965      965           
=======================================
  Hits        21804    21804           
  Misses       1362     1362           
  Partials      107      107           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.