Sha256: 046404808c4a50f4d6cc86bff7de09e5ff61910e0ecb02f340e342b71cb8c280

Contents?: true

Size: 1.74 KB

Versions: 6

Compression:

Stored size: 1.74 KB

Contents

Feature: Search features
  In order to have fast access to features and scenarios
  As a stakeholder
  I want to be able to search features

  Scenario Outline: Search feature name
    Given a feature file named "sample.feature" with the contents:
    """
    @QA
    Feature: Sample Feature
    """
    And I am on the search page
    When I search for "<query>"
    Then I should see a link to "<feature name>" with the url "<url>"

    Examples:
      | query        | feature name   | url                      |
      | Sample       | Sample Feature |/features/sample-feature  |
      | sAmPlE       | Sample Feature |/features/sample-feature  |
      | @QA          | Sample Feature |/features/sample-feature  |

  Scenario: Search scenario name
    Given a feature file named "sample.feature" with the contents:
    """
    Feature: Sample Feature
    Scenario: Sample Scenario
    """
    And I am on the search page
    When I search for "Sample Scenario"
    Then I should see a link to "Sample Scenario" with the url "/features/sample-feature/scenario/sample-scenario"

  Scenario: Search scenario steps
    Given a feature file named "sample.feature" with the contents:
    """
    Feature: Sample Feature
    Scenario: Sample Scenario
      Given I do something
    """
    And I am on the search page
    When I search for "I do something"
    Then I should see a link to "Sample Scenario" with the url "/features/sample-feature/scenario/sample-scenario"

  Scenario: Search suggests other searches
    Given a feature file named "sample.feature" with the contents:
    """
    Feature: Batman
    """
    And I am on the search page
    When I search for "btman"
    Then I should see "Did you mean"
    And I should see a link to "Batman" with the url "/search?q=Batman"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wally-0.0.11 features/search_features.feature
wally-0.0.10 features/search_features.feature
wally-0.0.9 features/search_features.feature
wally-0.0.8 features/search_features.feature
wally-0.0.7 features/search_features.feature
wally-0.0.6 features/search_features.feature