Sha256: 2b01736c05818b1a8e142ceac59865632de96022afdc86394d68901f7a2c5a0b

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

@edit @articles
Feature: Edit a document
  In order to [goal]
  [stakeholder]
  wants [behaviour]
  
  Scenario: Visit Document Edit Page
    Given I am logged in as "archivist1@example.com" 
    And I am on the edit document page for hydrangea:fixture_mods_article1 
    Then I should see "ARTICLE TITLE" within "#title_fieldset"    
    And I should see a "Save Description" button

  Scenario: Visit Document Edit Page and see the file assets
     Given I am logged in as "archivist1@example.com" 
     And I am on the edit document page for libra-oa:1
     Then I should see "The Smallest Victims of the " within "#title_fieldset"
		 Then I should see "gibson.pdf" within "tr.file_asset"
		 And I should see a delete button for "libra-oa:1"      

  Scenario: Viewing browse/edit buttons
    Given I am logged in as "archivist1@example.com" 
    And I am on the edit document page for hydrangea:fixture_mods_article1
    Then I should see a "span" tag with a "class" attribute of "edit-browse"


  # the mockups for Libra did not have a delete confirmation
  @overwritten
  Scenario: Delete Confirmation on Edit Page
    Given I am logged in as "archivist1@example.com" 
    And I am on the edit document page for hydrangea:fixture_mods_article1 
    Then I should see a "div" tag with an "id" attribute of "delete_dialog_container"
    And I should see "Permanently delete"

Version data entries

3 entries across 3 versions & 1 rubygems

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