USEPA / cam-api-portal

Api for data collected to run programs designed to reduce air pollution from power plants
MIT License
5 stars 3 forks source link

Create system updates banner React component #55

Closed j-tafoya closed 2 years ago

j-tafoya commented 2 years ago

Definition of Ready

User Story

As a user I want to quickly see important system updates So that I can plan accordingly

Acceptance Criteria

Given a system update (e.g. offline for maintenance) When a user visits the homepage Then they should see a banner displaying the system update

Given no system updates When a user visits the homepage Then they should not see the banner

Given a user scrolls down the page When they go beyond the length that the subheader is visible Then the banner should also go out of view with the subheader

Development Notes

See the invision wireframes for reference

Testing

Test Description

Verify the banner displays appropriately under the subheader in mobile and desktop view. It should stay with the subheader and not move with the page.

Assumptions and Pre-Conditions

n/a

Test Data

Simulated system update message

Steps to be Executed

  1. Simulate system update message
  2. View homepage and any pages with the subheader
  3. Verify the banner is displayed and sticks with the subheader
  4. Verify the banner reacts appropriately to different window sizes
  5. Verify that without a system update message, the banner is not visible

Definition of Done