Sha256: 7aacd3a2ffca4806476f3b5acf3112e7bcc964e4f658653761c886e97f8560de

Contents?: true

Size: 1.79 KB

Versions: 2

Compression:

Stored size: 1.79 KB

Contents

@file_assets
Feature: Upload file into a document
  In order to add files to a document
  As an editor 
  I want to upload files in the edit form
  
  @nojs
  Scenario: Upload files on dataset edit page
    Given I am logged in as "archivist1@example.com"
    And I am on the edit document page for hydrangea:fixture_mods_dataset1
    And I attach the file "test_support/fixtures/image.jp2" to "Filedata"
    When I press "Upload File"
    Then I should see "The file image.jp2 has been saved"
    And I should see a link to "image.jp2" in the file assets list
    
  Scenario: Upload files on article edit page
    Given I am logged in as "archivist1@example.com"
    And I am on the edit document page for hydrangea:fixture_mods_article1
    And I attach the file "test_support/fixtures/image.jp2" to "Filedata"
    When I press "Upload File"
    Then I should see "The file image.jp2 has been saved"
    And I should see a link to "image.jp2" in the file assets list
  
  @nojs
  Scenario: Upload files on file assets list page
    Given I am logged in as "archivist1@example.com"
    And I am on the file asset list page for hydrangea:fixture_mods_dataset1
#Then show me the page
    And I attach the file "test_support/fixtures/image.jp2" to "Filedata"
    When I press "Upload File"
    Then I should see "The file image.jp2 has been saved"
    And I should see a link to "image.jp2" in the file assets list
  
  Scenario: Upload files on file asset creation page
    Given I am logged in as "archivist1@example.com"
    And I am on the file asset creation page for hydrangea:fixture_mods_dataset1
    And I attach the file "test_support/fixtures/image.jp2" to "Filedata"
    When I press "Upload File"
    Then I should see "The file image.jp2 has been saved"
    And I should see a link to "image.jp2" in the file assets list

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-head-3.0.0pre3 test_support/features/file_upload.feature
hydra-head-3.0.0pre2 test_support/features/file_upload.feature