web icon indicating copy to clipboard operation
web copied to clipboard

Test coverage for the app store

Open kulmann opened this issue 1 year ago • 4 comments

Description

The app store has no test coverage at the moment. Needs to change.

User Stories

  • As a product owner, I want to be certain that crucial functionality of the app store app works so that I can release with confidence.

Value

Acceptance Criteria

  • Cover the most crucial parts of the app store app with unit- and e2e-tests.
  • unit @kulmann
    • loading state (-> LayoutContainer)
    • error state
    • pinia stores:
      • [ ] apps
      • [ ] repositories
    • overview:
      • [ ] no-content message if search term doesn't result in matches
      • [ ] search filter gets reflected into url query (on type, on tag-click)
      • [ ] tile renders cover-image, title, most-recent version, subtitle, tags and download-button
      • [ ] tile shows fallback image if no cover-image provided
      • [ ] click on title, click on cover both navigate into details
    • details
      • [ ] cover image and screenshots get rendered
      • [ ] images can be cycled via dots and arrows
      • [ ] tile renders back-to-overview button, gallery, title, most-recent version, subtitle, description, tags, authors (as external links), resources (as external links), releases as table
      • [ ] releases have a download button per version
  • e2e (happy path!) @AlexAndBear
    • [x] journey 1 "discovery": navigate to app store app, check that a list of apps is loaded, among them: draw-io/json-viewer/unzip, enter draw into search bar, check the results, click on tag viewer (from draw-io app), check the results, click on json-viewer app, check that details page renders, click on viewer tag in details view, check that we navigate back to the overview and have all apps in the result set with viewer among tags or in the app name
    • [x] journey 2 "details": navigate to app store app, click on Development boilerplate (web-app-skeleton), check that the details page renders, click download for a specific version (NOT the most recent version though), verify that the app version downloads, go back to overview, click download for draw-io in overview, verify that the most recent app version downloads

Definition of ready

  • [ ] Everybody needs to understand the value written in the user story
  • [ ] Acceptance criteria have to be defined
  • [ ] All dependencies of the user story need to be identified
  • [ ] Feature should be seen from an end user perspective
  • [ ] Story has to be estimated
  • [ ] Story points need to be less than 20

Definition of done

  • Functional requirements
    • [ ] Functionality described in the user story works
    • [ ] Acceptance criteria are fulfilled
  • Quality
    • [ ] Code review happened
    • [ ] CI is green (that includes new and existing automated tests)
    • [ ] Critical code received unit tests by the developer
  • Non-functional requirements
    • [ ] No sonar cloud issues

kulmann avatar Sep 23 '24 19:09 kulmann

You want me to takeover here ?

AlexAndBear avatar Sep 23 '24 20:09 AlexAndBear

You want me to takeover here ?

Yes, that would be great, thank you. ❤️ do you want to pair on making a test plan?

kulmann avatar Sep 23 '24 20:09 kulmann

That would be awesome 💖

AlexAndBear avatar Sep 23 '24 20:09 AlexAndBear

e2e tests are done :)

AlexAndBear avatar Oct 06 '24 13:10 AlexAndBear