When the user arrives on the page and types in the text area of a destination, they should be able to click a submit button that prints a diary entry for that destination
Acceptance Criteria
When: the user types in the text area and hits submit on a destination card
Then: a diary entry should be generated
And: the diary entry should contain the name of the location form the card the user was typing in
And: and the diary entry should contain the text from the destination card the user typed
And: the text box for that card should be cleared upon submission
Technical Notes
this should be contained in function called buttonClick
Story
When the user arrives on the page and types in the text area of a destination, they should be able to click a submit button that prints a diary entry for that destination
Acceptance Criteria
When: the user types in the text area and hits submit on a destination card Then: a diary entry should be generated And: the diary entry should contain the name of the location form the card the user was typing in And: and the diary entry should contain the text from the destination card the user typed And: the text box for that card should be cleared upon submission
Technical Notes