Closed amehta-scottlogic closed 2 months ago
Test Analysis
Verify that mocked API data is displayed appropriately on the graph (manual) -> Can then be automated as a screenshot assertion in playwright -> It seems only graphs with both forecast and in-situ are displayed.
Verify that data shown only spans 5 days
Verify that users have visual feedback whilst the data is being loaded. (Loading animation)
Verify that if a user enters an invalid location (in the address bar for example) then they should be met with a "Location does not exist" page or similar (Exploratory)
Users should be able to zoom into the graph to just see one day. Assert a 1 day view via screenshot
Compare datapoints to recent database entries (Exploratory)
Echart functionality
Additionally mock these time/dates to prevent oddities in graphs. Exploratory verify data points match the database values Exploratory
FIndings
Analysis review - worth checking the scope of this ticket. The ticket title and description don't align. Is it just the forecast AQI plot? If so is it just the overall AQI or pollutant level AQIs too?
Loading Icon is to be covered as a manual check as opposed to automation. Due to different browser behaviours.
Description
This page will be used to compare forecast/in situ for a single city.
This ticket has scope only for the displaying the forecast in the UI for a single city
We have decided to use echarts for the charting library for now.
For now let's not use redux, something like this might be simpler: https://tanstack.com/query/latest/docs/framework/react/guides/queries
Acceptance Criteria
Test Checklist: