Sha256: 65c6ead105c202fd678c8c4b27e2608b16d8d07f0b5a431b984b1886bdb38703
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
Feature: Manage file_items In order to show images on the page a user wants to upload images and manage them in folders Scenario: Create new folder Given I am on "/admin/saphira/files" And I follow "New Folder" When I fill in "file_item_name" with "My first folder" And I press "Create" Then I should be on "/admin/saphira/files/my-first-folder" And I should see "My first folder" within "h1" Scenario: Delete folder Given the following file_items: | name | item_type | | My first folder | folder | | My second folder | folder | And I am on "/admin/saphira/files" When I follow "saphira-action-destroy-my-first-folder" Then I should see "My second folder" And I should not see "My first folder" Scenario: Upload an image which should be rotated automatically Given I am on "/admin/saphira/files" And I follow "New File" When I fill in "file_item_name" with "My first image" And I attach the file "eos-550d-wrong-orientation.jpg" When I fill in "file_item_tag_list" with "Trash, Orange, Berlin" And I press "Create" Then I should be on "/admin/saphira/files/my-first-image" And I should see "My first image" within ".information" And I should see "Trash, Orange, Berlin" within ".information" And I should see "Canon EOS 550D" within ".information" And I should see "Field Image Orientation Transformed" within ".information" And I should see an image as portrait within "#saphira-file-preview" Scenario: Upload a text file Given I am on "/admin/saphira/files" And I follow "New File" When I fill in "file_item_name" with "My first text file" And I attach the file "some-text.txt" When I fill in "file_item_tag_list" with "Lorem ipsum" And I press "Create" Then I should be on "/admin/saphira/files/my-first-text-file" And I should see "My first text file" within ".information" And I should see "Lorem ipsum" within ".information"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saphira-0.1.1.beta1 | test/dummy/features/manage_file_items.feature |