ita-social-projects / EventsExpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

As a user, I want to change the mode (participant/creator) of the "My Events" page, so that I can review different events' lists.

AndriiKachan opened this issue · comments

As a user, I want to change the mode (participant/creator) of the "My Events" page, so that I can I can review different events' lists.

Date Time
10-07-2022 14:25

Pre-requisites

  1. The user is logged on a site;
  2. The user is on the "My Events" page;

Description

  1. The tougle participant/creator by default is off (this means participant mode);

image

  1. In participant mode, the user can switch between 4 events' lists:
  • Finished events (The event that the user is joined and the event status is "Finished");
  • In-progress events (The event that the user is joined and the event status is "In-progress");
  • Future events (The event that the user is joined and the event status is "Future");
  • Bookmarked events (The event that the user bookmarked from the general events catalog (i.e. the bookmark attribute is true)).
    Note: Once event is finished, it can not be bookmarked (change bookmark attribute to false).
  1. When user turn on tougle participant/creator, system switches to creator mode;

image

  1. In creator mode, the user can switch between 4 events' lists:
  • Finished events (The event in which user is creator and the event status is "Finished");
  • In-progress events (The event in which user is creator and the event status is "In-progress");
  • Future events (The event in which user is creator and the event status is "Future");
  • Drafts (The event that has not been published by creator and is on the editing stage).

Note: Detailed information of the Statuses of the event can be found here:
https://github.com/ita-social-projects/EventsExpress/wiki/Statuses-of-the-Event

Acceptance criteria
Notes about what the story must do in order for the product owner to accept it as complete

Scenario 1 Display events in the Participant mode
Given User is on the "My Events" page
And Tougle participant/creator is off (Participant mode)
When User clicks on the section name of the event list (Finished events, In-progress events, Future events, Bookmarked)
Then Events' lists for Participant mode are displayed (Finished events, In-progress events, Future events, Bookmarked)
Scenario 2 User wants to switch to Creator mode
Given User is on the "My Events" page
When User turns on tougle participant/creator (Creator mode)
Then Events' lists for Creator Mode are displayed (Finished events, In-progress events, Future events, Drafts)
Scenario 3 User wants to switch to Participant mode
Given User is on the "My Events" page
And Tougle participant/creator is on (Creator mode)
When User turns off tougle participant/creator (Participant mode)
Then User is in the Participant Mode

Epic link: Epic #1402