Sha256: 13790212ee9c6c7f9af1652de6bff6736ac510dafc7c57966d2cc764b0249f69

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

@show @articles
Feature: Show a document
  In order to [goal]
  [stakeholder]
  wants [behaviour]
  
  Scenario: Public visit Publicly Viewable Document
    Given I am on the show document page for hydrangea:fixture_mods_article1
    Then I should see "ARTICLE TITLE"
    And I should see "GIVEN NAMES"
    And I should see "FAMILY NAME"
    And I should see "FACULTY, UNIVERSITY"
    And I should see "TOPIC 1"
    And I should see "TOPIC 2"
    And I should see "CONTROLLED TERM"
    And I should not see a link to "the edit document page for hydrangea:fixture_mods_article1"
  
  Scenario: Public visit Document Show Page for a private document  
    Given I am on the show document page for hydrangea:fixture_archivist_only_mods_article
    Then I should be on the search page
    And I should see "You do not have sufficient access privileges to read this document, which has been marked private" within ".notice"
  
  @wip
  Scenario: Superuser visits Document Show Page for a private document
    Given I am a superuser
    And I am on the show document page for hydrangea:fixture_archivist_only_mods_article
    Then I should see "Article for Archivist Eyes Only"
  
  Scenario: Archivist visits Show Page for Restricted Document
    Given I am logged in as "archivist1@example.com" 
    And I am on the show document page for hydrangea:fixture_archivist_only_mods_article
    Then I should see "Article for Archivist Eyes Only"
    And I should see "Sally"
    And I should see "Whocontributes"
    And I should see "University of Contributions"
    And I should see "contributing"
    And I should see "exclusiveness"
    And I should not see a link to "the edit document page for hydrangea:fixture_public_mods_article"

Version data entries

3 entries across 3 versions & 1 rubygems

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