Sha256: 69acf605a540e81b32623a05ae86ad8e842c242e4922c6c71d39769561601b99

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

@files @files-manage
Feature: Manage Files
  In order to control the content on my website
  As an administrator
  I want to create and manage files
  
  Background:
    Given I am a logged in refinery user
    
  Scenario: Create Valid File
    Given I have no files
    When I go to the list of files
    And I follow "Upload New File"
    When I attach the file at "features/uploads/refinery_is_awesome.txt"
    And I press "Save"
    Then the file "refinery_is_awesome.txt" should have uploaded successfully
    And I should have 1 file
    
  Scenario: Edit Existing File
    Given I have no files
    When I upload the file at "features/uploads/refinery_is_awesome.txt"
    Then I go to the list of files
    And I follow "Edit this file"
    And I attach the file at "features/uploads/beach.jpeg"
    And I press "Save"
    Then the file "beach.jpeg" should have uploaded successfully
    And I should have 1 file
    
  Scenario: Download Existing File
    Given I have no files
    When I upload the file at "features/uploads/refinery_is_awesome.txt"
    Then I go to the list of files
    And I follow "Download this file"
    Then I should see "http://www.refineryhq.com/"
    
  Scenario: Files Delete
    #The 'follow "Remove this file forever" line is failing -- needs fixed.
    #Given I have no files
    #When I upload the file at "features/uploads/refinery_is_awesome.txt"
    #Then I go to the list of files
    #And I follow "Remove this file forever"
    #And I press "OK"
    #Then I should see "Flash message here.. not in place?"
    #And I should have 0 files
    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-0.9.7.10 features/refinery/manage_files.feature
refinerycms-0.9.7.9 features/refinery/manage_files.feature