User Story: Content Asset Managment

IamPersistent edited this page Nov 16, 2010 · 2 revisions
Clone this wiki locally
# language: en
Feature: Content Asset Managment
  In order to have assets for my pages
  As a user
  I want to be able to add, notate, update and delete assets

Scenario:  Add asset
  Given I am logged in
  And there is a asset upload form
  When I select an image to upload
  And I enter the name "My Picture"
  And I enter the note "2010-11-15"
  And I submit the form
  Then the image should be saved
  And an asset record should be created
  And the asset record should have the name "My Picture"
  And the asset record should have the note "2010-11-15"
  And the asset record should have an image type
  And the asset record should have an active state

Scenario: Delete asset
  Given I am logged in
  And I have an asset named "My Picture"
  When I delete the asset
  Then the asset record should have a trash state
  And the asset should be added to the trash manager

Scenario: Update asset
  Given I am logged in
  And I have an asset named "My Picture"
  And there is an asset update form
  When I select an image to upload
  And I enter the name "My New Picture"
  Then the image should be saved
  And the asset should be updated to a new version
  And the asset record should have the name "My New Picture"
  And the asset record should have the note "2010-11-15"