Sha256: 43082565e268d958b34caccfdcce2d272bfc20b1db229fd0380fca5a2782fe31

Contents?: true

Size: 1.23 KB

Versions: 8

Compression:

Stored size: 1.23 KB

Contents

@unapi
Feature: unAPI
  In order to discover underlying document data
  As a user
  I want to use an unAPI endpoint
  
  Scenario: Search Page has unAPI discovery link and microformats
    When I go to the catalog page
    And I fill in the search box with ""
    And I press "search"
    Then I should see an unAPI discovery link 
    And I should see a "abbr" element with "class" = "unapi-id" exactly 10 times

  Scenario: Document Page has an unAPI discovery link and microformat
    Given I am on the document page for id 2007020969
    Then I should see an unAPI discovery link
    And I should see a "abbr" element with "class" = "unapi-id" at least 1 time

  Scenario: unAPI endpoint with no parameters
    When I go to the unAPI endpoint
    Then I should see a "format" element with "name" = "oai_dc_xml" exactly 1 time

  Scenario: Request list of formats for an object
    When I go to the unAPI endpoint for "2007020969"
    Then I should see a "format" element with "name" = "marc" exactly 1 time
    Then I should see a "format" element with "name" = "oai_dc_xml" exactly 1 time

  Scenario: Request format of object
    When I go to the unAPI endpoint for "2007020969" with format "oai_dc_xml"
    Then I should see "Strong Medicine speaks"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blacklight-3.0.0 test_support/features/unapi.feature
blacklight-3.0.0pre8 test_support/features/unapi.feature
blacklight-3.0.0pre7 test_support/features/unapi.feature
blacklight-3.0.0pre6 test_support/features/unapi.feature
blacklight-3.0.0pre4 test_support/features/unapi.feature
blacklight-3.0.0pre3 test_support/features/unapi.feature
blacklight-3.0pre2 test_support/features/unapi.feature
blacklight-3.0pre1 test_app/features/unapi.feature