Sha256: bf5c129d06b514098f6568428f87ac012062e79c63eb9c8847f93c6695700d75

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

Feature: attachments
  As a content editor
  I should be able to add, reorder, and delete attachments
  
  Background:
    Given I am logged in as admin
  
  Scenario: attach a file
    Given I have a page with no attachments
    When I edit the page
    And I click the plus icon
    And I attach the Rails logo
    And I save
    Then the page should have a new attachment
  
  Scenario: don't change attachments
    Given I have a page with 2 attachments
    When I edit the page
    And I save
    Then the page should have 2 attachments
  
  Scenario: attach another file
    Given I have a page with 2 attachments
    When I edit the page
    And I click the plus icon
    And I attach the Rails logo
    And I save
    Then the page should have 3 attachments
  
  Scenario: delete a file
    Given I have a page with 2 attachments
    When I edit the page
    And I delete the first attachment
    And I save
    Then the page should have 1 attachment
  
  Scenario: reorder attachments
    Given I have a page with 2 attachments
    When I edit the page
    And I drag attachment 2 above attachment 1
    And I save
    Then attachment 2 should be in position 1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-page_attachments-extension-1.0.2 features/attachments.feature
radiant-page_attachments-extension-1.0.0 features/attachments.feature