Use case: Poll creation - bounswe/bounswe2023group4 GitHub Wiki
Primary actor: User
Goal in context: The user wants to create a poll.
Preconditions:
- User is registered and logged into the Prediction Polls app.
Trigger: User selects the "Create Poll" option from the app's main menu.
Scenario:
- The app displays the "Create Poll" form.
- User selects the type of poll they want to create (discrete or continuous).
- User enters a due date or selects "no due date" option.
- User enters a question for the poll.
- In the case of a discrete poll, user enters at least two options.
- In the case of a continuous poll, user enters an input type.
- User selects "Create Poll" button.
- The app verifies that the user has enough coins to create the poll.
- If the user has sufficient coins, the app creates the poll and displays a confirmation message.
- If the user does not have enough coins, the app displays an error message and prompts the user to purchase more coins.
Exceptions:
- User does not have enough coins to create a poll.
- The app displays an error message and prompts the user to purchase more coins.
- User does not enter a due date or question, or if the user does not enter any options for a discrete poll.
- The app displays an error message and prompts the user to enter the required information.
Priority: High
When available: First Increment
Frequency of use: Daily.
Channels to actor: Via the Prediction Polls app on a mobile device or web browser.