As a Developer, I want to ensure that the front-end is sending the correct payload to the server when generating a YouTube video description, so that the server can generate the appropriate description.
Scenario:
The user enters the required details for generating a YouTube video description.
The front-end sends the details to the server via the endpoint ${baseUrl}generateYTubeVideoDescription.
Verify that the payload sent to the server includes the correct fields:
NOTE: You might need to omit usecase because it's not necessary to include it in the prompt.
e.g. const { videoDescription, tone, usecase, variants, creativityLevel, language } = req.body;
Verify that the payload is sent in the correct format and matches the expected data type
As a Developer, I want to ensure that the front-end is sending the correct payload to the server when generating a YouTube video description, so that the server can generate the appropriate description.
Scenario:
NOTE: You might need to omit
usecase
because it's not necessary to include it in the prompt. e.g.const { videoDescription, tone, usecase, variants, creativityLevel, language } = req.body;