This branch holds the work done for #296, #297, #298, #299, #317, and #318. It focuses on enabling scrolling on WebApp, adding restrictions for flashcard removal, and TDD test additions and fixes.
What was done:
Ensure that the user is also able to scroll through the flashcards overview screen on the WebApp, and polished flashcards overview screen layout to improve content and component visibility.
Added restrictions for flashcard management, in order to ensure that at least one study set is available for a pet to exist. Also, made sure that study set must also have at least one flashcard inside it.
Prevented removal of the last remaining flashcard in a study set, if there aren't more study sets available.
Fixed “remove all” functionality on WebApp and made sure it aligned with the new removal restrictions
Created new TDD tests for cases that didn’t have any (scrolling and remove all)
Updated creation and removal of flashcards TDD tests after the made changes
How to run tests?
Run npm run test-jest
What to look out for?
New scroll test
Updated flashcard removal test showcasing restrictions
Try removing first flashcard when it is the only one available and it is not possible
Added a second flashcard to the available study set, try removing it, and it is successful
Updated test allowing creation and removal after layout changes
This branch holds the work done for #296, #297, #298, #299, #317, and #318. It focuses on enabling scrolling on WebApp, adding restrictions for flashcard removal, and TDD test additions and fixes.
What was done:
How to run tests?
Run
npm run test-jest
What to look out for?