cse442-at-ub / project_s23-the-ai-violators

project_s23-the-ai-violators created by GitHub Classroom
0 stars 4 forks source link

As a person tracking their nutrition intake, I want to be able to input what calories and macros I consumed, so my daily intake can be recorded. #6

Closed sebastianrich18 closed 1 year ago

sebastianrich18 commented 1 year ago

Acceptance Tests

Test 1

  1. Go to our Login Page
  2. Login in with test username "cam" and password "camtest" and verify you were redirected to the Content Page:image.png
  3. Click the text "Track Page" on the header bar and verify you are there: image.png
  4. Verify there is a header with the an image of a carrot, text that says "nutr.io", "Content Page", "Profile Page", "History Page", "Track Page", "Recommendation Page", "cam", "logout"
  5. Check that a form is displayed to enter date, meal name, calories, carbs, protein, and fats into
  6. Verify there is an add button

Test 2

  1. Go to our Login Page
  2. Login in with test username "cam" and password "camtest" and verify you were redirected to the Content Page:image.png
  3. Click the text "Track Page" on the header bar and verify you are there: image.png
  4. Enter today's date into the Date field
  5. Enter "steak" into the Meal field
  6. Enter "400" into the Calories field
  7. Enter "10" into the Carbs field
  8. Enter "20" into the Protein field
  9. Enter "30" into the Fats field
  10. Click the blue "Add" button at the bottom of the screen
  11. Verify that a green popup message with the text "Successfully Added" is displayed at the bottom of the screen
  12. Click the text "Content Page" on the header bar and make sure you were redirected to the Content Page: image.png
  13. Find the Meal History table at the bottom of the page and verify there is a row in the table with the values [steak, 400, 10, 20, 30]

Test 3

  1. Go to our Login Page
  2. Login in with test username "cam" and password "camtest" and verify you were redirected to the Content Page:image.png
  3. Click the text "Track Page" on the header bar and verify you are there: image.png
  4. Enter today's date into the Date field
  5. Leave the Meal field blank
  6. Enter "400" into the Calories field
  7. Enter "10" into the Carbs field
  8. Enter "20" into the Protein field
  9. Enter "30" into the Fats field
  10. Click the blue "Add" button at the bottom of the screen
  11. Verify that a popup message with the text "Please fill out this field" is displayed under the Meal field

Test 4

  1. Go to our Login Page
  2. Login in with test username "cam" and password "camtest" and verify you were redirected to the Content Page:image.png
  3. Click the text "Track Page" on the header bar and verify you are there: image.png
  4. Don't enter anything into the form
  5. Click the add button and verify that a popup message with the text "Please fill out this field" is displayed under the date field
Nildham21 commented 1 year ago

Need to add more tests regarding valid inputs and missing inputs.

Once a user enters the calories and macros how can they verify it was successfully added and stored? Direct them back to the content page so they can view the change on the tracker wheel.

Nildham21 commented 1 year ago

The test steps need to be more detailed, like the sign up and log in page, provide the user sample numbers they can input and what they expected output should be when they press add

Nildham21 commented 1 year ago

Need to update these tests, since an additional input value was added.