Sha256: e5d153d32cb017ce06a3ad7e4b323a1b4c82e235dc6192452cefa0c493d3fffc

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

@search
Feature: Search
  In order find content more quickly
  As an administrator
  I want to use search

  Background:
    Given I am a logged in refinery user

  @search-existing
  Scenario Outline: Search Existing Item
    Given I have a <item> titled "<title>"
    When I go to the list of <location>
    And I fill in "search" with "<title>"
    And I press "Search"
    Then I should see "<title>"

    Examples:
      |  item  | title  |   location   |
      |page    |testitem|pages         |
      |inquiry |testitem|inquiries     |
      |inquiry |testitem|spam inquiries|
      |refinery setting|Test Item|refinery settings|

  # This will only run when resources engine is installed.
  @search-file
  Scenario: Search File
    When I upload the file at "refinery_is_awesome.txt"
    And I go to the list of files
    And I fill in "search" with "Refinery Is Awesome"
    And I press "Search"
    Then I should see "Refinery Is Awesome"

  # This will only run when images engine is installed.
  @search-image
  Scenario: Search Image
    When I upload the image at "beach.jpeg"
    And I go to the list of images
    And I fill in "search" with "Beach"
    And I press "Search"
    Then I should see "Beach"

  @search-nonexisting
  Scenario Outline: Search Nonexisting Item
    Given I have no <item>
    When I go to the list of <location>
    And I fill in "search" with "nonexisting"
    And I press "Search"
    Then I should see "Sorry, no results found"

    Examples:
      |  item   |   location   |
      |pages    |pages         |
      |images   |images        |
      |files    |files         |
      |inquiries|inquiries     |
      |inquiries|spam inquiries|

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-0.9.8.4 vendor/refinerycms/core/features/search.feature