Sha256: 3ef41269471efd30c95b393770867abb6a201e7f5754dc6c9bd42323550ceecb

Contents?: true

Size: 1.86 KB

Versions: 9

Compression:

Stored size: 1.86 KB

Contents

@javascript
Feature: Watch interface
  In order to make use of notifications
  As an Editor
  I want simple watch interface on cards

  Background:
    Given I am signed in as Joe User

  Scenario: Anonymous User should not see watch UI
    Given I follow "Sign out"
    When I go to the homepage
    And I hover over the main menu
    Then I should not see "follow"

  Scenario: Watching a Card
    When I go to the homepage
    And I hover over the main menu
    And In the main card menu I click "follow"
    Then In the main card menu I should see "following|unfollow"
    # assumes focus still on that link.  otherwise "following"
    # selenium behavior not totally consistent here.
    And the card Joe User+*following should contain "Home"

  Scenario: Unwatching a Card
    Given Joe User is watching "Home"
    And I am on the homepage
    And I hover over the main menu
    And In the main card menu I find link with class "watch-toggle-off" and click it
    #note: the link name turns from "follwing" to "unfollow" on mouseover and because we don't control the mouse's position
    #      this test randomly fails if we use the link name
    Then In the main card menu I should see "follow"
    And the card Joe User+*following should not contain "Home"

  Scenario: Watching a Cardtype
    When I go to card User
    And I hover over the main menu
    And In the main card menu I should see "follow all"
    And In the main card menu I should not see "|"

  Scenario: A Card whose Cardtype is Watched
    Given Joe User is watching "User"
    And I go to card Joe User
    And I hover over the main menu
    Then In the main card menu I should see "(following)|unfollow"

#too long for menu
#
#  Scenario: Watching Cardtypes
#    Given Joe User is watching "Cardtype"
#    When I go to card User
#    Then In the main card footer I should see "watching Cardtype cards | watch User cards"



Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wagn-1.14.9 features/follow.feature
wagn-1.14.8 features/follow.feature
wagn-1.14.7 features/follow.feature
wagn-1.14.6 features/follow.feature
wagn-1.14.5 features/follow.feature
wagn-1.14.4 features/follow.feature
wagn-1.14.3 features/follow.feature
wagn-1.14.2 features/follow.feature
wagn-1.14.1 features/follow.feature