US-EPA-CAMD / easey-ui

Project Management repo for EPA Clean Air Markets Division (CAMD) Business Suite of applications
MIT License
0 stars 0 forks source link

Edit error messages in hourly emissions and daily emissions public api #992

Closed JanellC closed 3 years ago

JanellC commented 3 years ago

Definition of Ready

User Story

As a CAMPD API user I want to receive clear error messages so that I can fix my query

Acceptance Criteria

Given that a user has entered an invalid format for date When API endpoint is executed Then the system displays the error message: [FV-5]

Given that a user has entered an invalid date range (end date not equal or greater than start date) When API endpoint is executed Then the system displays the error message: [FV-6]

Given that a user has entered an invalid year (not between 1995 and current) When API endpoint is executed Then the system displays the error message: [FV-7]

Given that a user has entered date that is not a valid date (such as 2020-13-45) When API endpoint is executed Then the system displays the error message: [FV-11]

Context

(User journeys, design mockups, architectural diagrams, business rules, data element definitions)

Edit error messages that say "please" in order to comply with the EPA's error message style guide

Error Message Repo

Testing

Test Case: TC129 Tester: @davidkwartler

Definition of Done

junie-stigdon commented 3 years ago

Pull Request

david-cvp commented 3 years ago

TC129 passed @tlageman-epa

image.png image.png image.png image.png