mikhael28/paretOS

Testing: Add additional Puppeteer tests to check Sprint creation & updating

Open

#218 opened on Apr 23, 2022

 (15 comments) (0 reactions) (1 assignee)JavaScript (45 forks)auto 404
Puppeteergood first issuehelp wantedtest

Repository metrics

Stars
 (35 stars)
PR merge metrics
 (PR metrics pending)

Description

Description

We recently implemented a GitHub Actions CI flow to run automated unit & integration tests on newly opened pull requests. The tests are very limited right now - really just proof of concept that unit and integration tests will work.

Are you looking to practice Puppeteer or your test-writing skills? Or are you just a wizard at integration testing who likes helping out on open source efforts? We would love it if you could help us establish some best practices in testing by expanding the initial set of integration tests that are run. We'd like to focus on Sprints & the Arena.

Background

The 'Arena' section of the app is a place where learners can create weekly sprints to help them practice good habits related to their software development career. The main screen shows your upcoming, current, and completed sprints in chronological order, starting with the most recent one.

Clicking on any one of them will bring you to the individual Sprint view. In this view you can record & view your planning notes, mark daily achievement goals as completed (use Time Travel to submit achievements for previous days if you forgot to record them), and view your position in the leaderboard of the team participating in your sprint.

To create a new sprint, click on "Start a Sprint" in the left-hand navigation panel. You'll have the option to select a Sprint Template from existing predefined templates, Competitors (friends you want to join you in the sprint), and a Start Date. Once you click the 'create' button, you'll be brought back to the main page showing all your sprints.

To create a template for a sprint, click on "Sprint Template". Enter a name for your template, drag & drop achievements to the time of day that you aim to complete them, and click the "create" button to save your template.

Tests

  • A user can create a sprint template
  • A user can create a sprint
  • Clicking on a sprint displays details about that sprint
  • A user can save planning notes in the Plan tab of Sprint details
  • A user can report completing an achievement if the sprint is currently active
  • A user cannot report achievements for inactive sprints
  • A user can report an achievement on an earlier or later day by using time travel
  • When a user reports an achievement, their progress is shown in the 'stats' and their position is shown on the leaderboard

Contributor guide