*** Cast Actions ***

Scenario: User can comment on a cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click comment button
    and I comment on cast message
   Then I should see a comment on the cast message in the cast view

Scenario: User can like a cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click on like button
   Then I should see the likes on the cast message increase in the cast view

Scenario: User can dislike a cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click on dislike button
   Then I should see the dislikes on the cast message increase in the cast view


Scenario: User can send a cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click on send cast message in the settings menu
   Then I should see a cast message being sent

Scenario: User can follow cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click follow a cast message in the setting menu
   Then I should see a cast message being followed

Scenario: User can unfollow a cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click unfollow cast message in the cast view
   Then I should see the cast message being unfollowed


Scenario: User can copy link of a cast message in the cast view
  Given a logged in user
    and I add a cast message
   When I click on copy cast URl in the cast view
   Then I should see the URL being copied

Scenario: Mark a cast message as read in the cast view
  Given a logged in user
    and I add a cast message
   When I click mark as read
   Then I should see the message being read


Scenario: Mark cast message as unread in the cast view
  Given a logged in user
    and I add a cast message
   When I click mark as unread
   Then I should see the cast message being unread

Scenario: User can like a cast comment in the cast view
  Given a logged in user
    and I add a cast message and comment
   When I click like on a cast comment
   Then I should see likes of cast comment increase

Scenario: User can dislike a cast comment
  Given a logged in user
    and I add a cast message and comment
   When I clik unlike on a cast comment
   Then I should see unlikes of a cast comment increase

Scenario: User can comment on the comment in cast view
  Given a logged in user
    and I add a cast message and comment
   When I write comment on comment
   Then I should see a cast comment on comment in cast view

Scenario: Mark comment on comment of cast message as read in cast view
  Given a logged in user
    and I add a cast message and comment
   When I mark comment on comment as read
   Then I should see comment on comment marked as read in cast view

Scenario: Mark comment on comment of cast message as unread in cast view
  Given a logged in user
    and I add a cast message and comment in cast view
   When I mark comment on comment as unread
   Then I should see comment on comment marked as unread in cast view

Scenario: User can copy link of any cast comment in cast view
  Given a logged in user
    and I add a cast message and comment in cast view
   When I click on copy cast comment URl
   Then I should see URL being copied

Scenario: User click comment, don't write anything and click post in cast view
 Given a logged in user
   and I add a cast message in cast view
  When I click comment
   and click post
  Then I should see an error message popup in cast view

Scenario: User click comment, write dummy text and click cancel in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I click comment and write comment
    and click cancel
   Then I should not see a comment being posted in cast view

Scenario: User can add cast comment with refrence cloud object in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add cast comment with refrence cloud object
   Then I should see a cast comment with refrence cloud object being posted in cast view

Scenario: User can add cast comment with attached file in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add cast comment with file attached
   Then I should see a cast comment being posted with file attached in cast view

Scenario: User can add cast comment with addressing spcific people with values in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add cast comment with specific people addressed
   Then I should see a cast comment with specific people being addressed in cast view

Scenario: User can add cast comment and add a person to it in cast view
  Given a logged in user
    and I add a cast message in the cast view
   When I add cast comment and add a person
   Then I should see a comment being posted with the person added in cast view

Scenario: User can add cast comment with time frame in cast view
  Given a logged in user
    and I add a cast message in the cast view
   When I add a cast comment with time frame
   Then I should see a comment with time frame in cast view

Scenario: A user can add cast comment with tag in cast view
  Given a logged in user
    and I add a cast message in the cast view
   When I add a cast comment with tag
   Then I should see a comment with tag in cast view

Scenario: Address cast comment to a specific person with bell in cast view
  Given a logged in user
    and I add a cast message in the cast view
   When I add cast comment for a specific person with bell
   Then I should see a comment for a specific person with bell in cast view

Scenario: Add link to a cast comment in cast view
  Given a logged in user
    and I add a cast message in the cast view
   When I add link to a cast comment
   Then I should see a comment with a link in cast view

Scenario: User can like a cast comment in cast view
  Given a logged in user
    and I add a cast message in cast view
    and I comment on the cast message in cast view
   When I click like on a cast comment
   Then I should see likes of cast comment being increased in cast view

Scenario: User can dislike a cast comment in cast view
  Given a logged in user
    and I add a cast message in cast view
    and I comment on the cast message
   When I clik unlike on a cast comment
   Then I should see unlikes of a cast comment being increased in cast view

Scenario: User can comment on the comment
  Given a logged in user
    and I add a cast message in cast view
    and I comment on the cast message
   When I write comment on comment
   Then I should see a cast comment on comment in cast view

Scenario: Mark comment on comment of cast message as read in cast view
  Given a logged in user
    and I add a cast message
    and I comment on the cast message
   When I mark comment on comment as read
   Then I should see comment on comment being marked as read

Scenario: Mark comment on comment of cast message as unread in cast view
  Given a logged in user
    and I add a cast message in cast view
    and I comment on the cast message
   When I mark comment on comment as unread
   Then I should see comment on comment being marked as unread in cast view

Scenario: User can copy link of any cast comment on commene in cast view
  Given a logged in user
    and I add a cast message in cast view
    and I comment on comment in the cast message
   When I click on copy cast comment URl
   Then I should see URL of cast comment on comment being copied in cast view

Scenario: User click comment on comment, don't write anything and click post in cast view
  Given a logged in user
    and I add a cast message
    and I comment on comment a cast message
   When I click comment
    and I click post
   Then I should see an error message popup in cast view

Scenario: User click comment on comment, write something and click cancel in cast view
  Given a logged in user
    and I add a cast message
    and I comment on the cast message
   When I click comment and write comment
    and I click cancel
   Then I should see comment on comment not being posted in cast view

Scenario: User can add cast comment on comment with refrence cloud object in cast view
  Given a logged in user
    and I add a cast message
   When I add cast comment on comment with refrence cloud object
   Then I should see a cast comment on comment with refrence cloud object in cast view

Scenario: User can add cast comment on comment with attached file in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add cast comment on comment with file attached
   Then I should see a cast comment on comment with file attached in cast view

Scenario: User can add cast comment on comment with addressing spcific people with values in cast view
  Given a logged in user
   and  I add a cast message in cast view
   When I add cast comment with specific people addressed
   Then I should see comment on comment with specific people being addressed in cast view


Scenario: User can add cast comment on comment and add a person to it in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add cast comment and add a person
   Then I should see a comment on comment with added person in cast view


Scenario: User can add cast comment with time frame in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add a cast comment with time frame
   Then I should see a comment on comment in a time frame

Scenario: User can add cast comment on comment with tag in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add a cast comment on comment with tag
   Then I should see a comment on comment with tag in cast view

Scenario: Address cast comment on comment to a specific person with bell in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I add cast comment on comment for a specific person with bell
   Then I should see a comment on comment with a specific person notified in cast view

Scenario: Add link to a cast comment on comment in cast view
  Given  a logged in user
    and I add a cast message in cast view
   When I add link to a cast comment on comment
   Then I should see a comment on comment with the link in cast view

***** Cast Filters ******

Scenario: Sort cast message with General in cast view
  Given a logged in user
    and I add a cast message with general topic in cast view
   When I navigate to cast topic general
   Then I should see casts with general topic in cast view

Scenario: Sort cast message with welcomecast topic in cast view
  Given a logged in user
    and I add a cast message with welcomecast topic in cast view
   When I navigate to the cast topic welcomecast
   Then I should see casts with welcomecast topic in cast view

Scenario: Sort cast message with Democast in cast view
  Given a logged in user
    and I add a cast message with Democast topic in cast view
   When I navigate to the cast topic Democast
   Then I should see casts with Democast topic in cast view

Scenario: Sort cast message with Business cloud in cast view
  Given a logged in user
    and I add a cast message with Business cloud topic in cast view
   When I navigate to the cast topic Business cloud
   Then I should see casts with Business cloud topic in cast view

Scenario: Sort cast message with Zimlet topic in cast view
  Given a logged in user
    and I add a cast message with Zimlet topic in cast view
   When I navigate to the cast topic Zimlet
   Then I should see casts with Zimlet topics in cast view

Scenario: Sort cast message with Portal dev in cast view
  Given a logged in user
    and I add a cast message with portal dev topic in cast view
   When I navigate to the cast topic Portal Dev
   Then I should see casts with Portal Dev topic in cast view

Scenario: Filter cast message by keywords in cast view
  Given a logged in user
    and I add a cast message with cretain keywords in cast view
   When I navigate to filters
    and I write a keyword
   Then I should see cast messages with the specified keyword in cast view

Scenario: Filter cast messages with tags in cast view
  Given a logged in user
    and I add a cast message with tags in cast view
   When I navigate to filters
    and I write a tag
   Then I should see cast messages with written tags in cast view

Scenario: Filter cast messages with date range in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I click filter and specify a date range
   Then I should see cast messages in the specified dates in cast view

Scenario: Filter cast message by author in cast view
 Given  a logged in user
   and  I add a cast message in cast view
   When I click filter and enter aurthor name
   Then I should see cast messges by the specific aurthor in the cast view


Scenario: Filter cast messages by the logged in user, in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I click filter and enter the logged in user
   Then I should see cast messages by logged in user, in cast view


Scenario: Filter cast messages by read in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I click read
   Then I should see read cast messages in cast view

Scenario: Filter cast messages by unread in cast view
  Given a logged in user
    and I add a cast message in cast view
   When I click unread
   Then I should see unread cast messages in cast view

Scenario: Filter cast messages clear button in cast view
  Given a logged in user
    and I click Filter
   When I fill in the cast filter form in cast view
    And I click clear
   Then I should see popup fadeout in cast view


