***** Ideabook Viewlet ******

Scenario: User can see the Ideabook viewlet
  Given a logged in user
   When I point the ideabook icon
   Then The ideabook viewlet should be opened

Scenario: Ideabook icon can't lose focus when user scroll screen
  Given a logged in user
   When I point the ideabook icon
    And Scroll screen
   Then The ideabook icon should be follow the scroll move

Scenario: Ideabook add form should remain open when user scroll screen
  Given a logged in user
   When I point the ideabook icon
    And I click add new button
    And Scroll screen
   Then The ideabook form should remains open and follow the scroll move

Scenario: User can open Ideabook in a new tab
  Given a logged in user
   When I point the ideabook icon
    And Click open in a new tab
   Then A new tab with ideabook content should be open

***** Ideabook Edition ******

Scenario: User can add a new idea item
  Given a logged in user
    And I point the ideabook icon
    And Click Add mew button
    And Fill in idea form fields
   When Click Save button
   Then A new idea item should be added

Scenario: User can't add a new idea without title
  Given a logged in user
    And I point the ideabook icon
    And Click Add mew button
    And Leave empty the title field
    And Fill in rest idea fields
   When Click Save button
   Then A popup message should be shown "Please enter title before saving"

Scenario: User can't add a new idea with a bad url
  Given a logged in user
    And I point the ideabook icon
    And Click Add mew button
    And Leave empty the title field
    And Fill in rest idea fields
   When Click Save button
   Then A popup message should be shown "Please enter title before saving"

Scenario: User can edit an idea item
  Given a logged in user
    And I point the ideabook icon
    And Click Idea Edit icon
    And Modify data fields on Idea form
   When Click Save button
   Then Idea item should be updated with new content

Scenario: User can't edit an idea without title
  Given a logged in user
    And I point the ideabook icon
    And Click Idea Edit icon
    And Modify data fields on Idea form
    And Leave empty the title field
   When Click Save button
   Then A popup message should be shown "Please enter title before saving"

Scenario: User can delete an idea item
  Given a logged in user
    And I point the ideabook icon
   When add a few ideas
   When Click Idea Delete icon
   Then Idea item should be deleted and Ideabook content updated

Scenario: Ideabook counter increase every time you add a new idea item
  Given a logged in user
    And I point the ideabook icon
   When add a new idea
    And Click Save button
   Then Ideabook counter should be increase by +1 with every new idea

Scenario: Ideabook counter decrease every time you delete an idea item
  Given a logged in user
    And The Ideabook should have some ideas
    And I point the ideabook icon
   When Click Idea Delete icon
   Then Ideabook counter should be decrease by 1 with deleted an idea

Scenario: User can open an idea item in a new tab
  Given a logged in user
    And I point the ideabook icon
   When I click Open idea in a new tab
   Then The idea should be opened in a new tab browser

***** Ideabook Filters ******

Scenario: User can filter ideas by tags
  Given a logged in user
    And add a few ideas with different tags
    And I point the ideabook icon
   When I select a tag in drop list
   Then The Ideabook content should be updated with related tag selected

Scenario: User can filter ideas by keywords
  Given a logged in user
    And add a few ideas with different tags
    And I point the ideabook icon
   When I enter a keyword in search field
   Then The Ideabook content should be updated with related keyword enter
