Tweet-311-Denver / tweet_311_denver_service

Backend for Tweet311Denver Turing Project
MIT License
1 stars 0 forks source link

Add functionality to send user back confirmation #14

Closed Dustin-Mikusko closed 4 years ago

Dustin-Mikusko commented 4 years ago

What does this PR do?

This PR adds in functionality for each of our Puppeteer functions to submit the form, navigate to the next page, and send back to the FE a confirmation object with the confirmation info as follows:

{
   caseID: 2832723,
   category: 'other',
   submittedAs: 'email@email.com',
   sumbittedAt: '2/22 at 1:00pm',
   notes: 'description text'
}

Where should the reviewer start?

The only changes have happened in 'puppeteer.js' file. Each function has a couple more lines to submit the form and extract the info.

Any background info?

I tried to get the picture upload to work, but I cannot get the site to cooperate. That will have to be a feature after MVP, but I don't think it's worth spending time on at the moment.