cs50 / checks

Checks for check50
17 stars 34 forks source link

survey checks #69

Closed kzidane closed 5 years ago

kzidane commented 5 years ago

How does this look as a start?

brianyu28 commented 5 years ago

@kzidane Do you think there's any possible way we can check that /sheet is (likely) working?

I'm thinking maybe...

  1. GET /sheet save the response.
  2. Look through form.html for any input fields and get their names
  3. POST some dummy data to /form with those names
  4. GET /sheet again and check at minimum that the returned HTML is distinct (but in the best case, check that the POSTed dummy data is present in the table)

Think that's doable? Anything I'm missing in that thinking?

kzidane commented 5 years ago

@brianyu28 per email, we could indeed try posting dummy data and grepping through content for arbitrary pieces of what we posted. One problem is if they expect the data to be in specific formats and do validations on backend we might not get what we expect. Not sure how reliable or accurate that would be tbh.