Skip to content

Enhancement: Setup end-to-end test for the application #535

@m-kolomanski

Description

@m-kolomanski

Description

The package logic is well tested, but some additional integration / end-to-end tests for the shiny application would be very useful when applying any changes to the app itself or checking if changes in one function do not cause any errors later down the line.

We can employ shinytest2 to programatically run the application, click around and check if required elements are there. The basic workflow for the app is quite straight forward and just a couple of clicks, so just making sure the app does not crash workflow will be easy to set up, and later on we can add more complex workflows to check for specific things.

Definition of Done

Simple application e2e test is implemented with the following workflow:

  1. Check if application startups correctly
  2. Check if mock data is loaded correctly and displayed
  3. Click next
  4. Check if filtering interface renders correctly
  5. Click next
  6. Check if mapping interface renders correctly
  7. Click next
  8. Check if tab switches correctly and data preview is displayed
  9. Click NCA tab
  10. Check if the interface elements render correctly.
  11. Click Run NCA
  12. Check if the tab changes correctly and results interface renders

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions