openclimatefix / quartz-frontend

Front End repo for the Nowcasting project.
https://openclimatefix.org/projects/nowcasting/
MIT License
100 stars 17 forks source link

[meta issue] FE E2E Testing #454

Open rachel-labri-tipton opened 6 months ago

rachel-labri-tipton commented 6 months ago

Detailed Description

We would like to have better E2E testing coverage for the Quartz Solar UI. Up until now, we have been using a tick list and human eyes to check the UI's functionality. It's time to automate!

We'd like to add E2E testing using Cypress tests for the following pages in the Quartz UI:

Context

Our FE has been lacking E2E testing and we are trying to catch up on the backlog and put in place a system for writing Cypress tests as we add new features.

Possible Implementation

It would be helpful to convert our current UAT list into E2E Cypress Tests.

General

Auth

Quartz-specific points

PV Forecast View

National

Time

Header

Probabilistic Charts

GSP

Time

Header

Probabilistic Charts

Map

Four Hour View

National & GSP

Delta View

National

GSP

Time

Header

Probabilistic Charts

GSP

Time

Title

Map

Combined views

Dashboard Mode

National

GSP

Legend

Map

Refresh

Sites View

Outside the Cypress testing scope

National Chart

GSP Chart

Delta Chart

Sites Chart

Possible Implementation

Write tests.

peterdudfield commented 5 months ago

Here's how we can add it to CI, might need to create a .env from some repo secrets

peterdudfield commented 5 months ago

did we managed to get cypress testing on development?