features/search_features.feature in wally-0.0.40 vs features/search_features.feature in wally-0.0.41

- old
+ new

@@ -9,11 +9,11 @@ @QA Feature: Sample Feature """ And I am on the search page When I search for "<query>" - Then I should see a search result link to "<feature name>" with the url "<url>" + Then I see a search result link to "<feature name>" with the url "<url>" Examples: | query | feature name | url | | Sample | Sample Feature |/projects/project/features/sample-feature | | sAmPlE | Sample Feature |/projects/project/features/sample-feature | @@ -27,42 +27,42 @@ As donkey I want ermm I dunno. """ And I am on the search page When I search for "donkey" - Then I should see a search result link to "Sample Feature" with the url "/projects/project/features/sample-feature" + Then I see a search result link to "Sample Feature" with the url "/projects/project/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 search result link to "Sample Scenario" with the url "/projects/project/features/sample-feature/scenario/sample-scenario" + Then I see a search result link to "Sample Scenario" with the url "/projects/project/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 search result link to "Sample Scenario" with the url "/projects/project/features/sample-feature/scenario/sample-scenario" + Then I see a search result link to "Sample Scenario" with the url "/projects/project/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 search result link to "Batman" with the url "/projects/project/search?q=Batman" + Then I see "Did you mean" + And I see a search result link to "Batman" with the url "/projects/project/search?q=Batman" Scenario: Search displays tags Given a feature file named "sample.feature" with the contents: """ @feature_tag @@ -71,25 +71,30 @@ @scenario_tag Scenario: Batman? """ And I am on the search page When I search for "Batman" - Then I should see "feature_tag" in the search results - And I should see "scenario_tag" in the search results + Then I see "feature_tag" in the search results + And I see "scenario_tag" in the search results - Scenario: Higlighted search result - Given a feature file named "sample.feature" with the contents: + Scenario: Highlighted search result with multiple matches + Given a feature file named "sample1.feature" with the contents: """ @feature_tag Feature: Some <long WORD feature word name Scenario: Some <long WORD scenario word name + Given I have a word """ And I am on the search page When I search for "word" - Then I should see the html: + Then I see the html: """ Some &lt;long <span class="search-result">WORD</span> feature <span class="search-result">word</span> name """ - And I should see the html: + And I see the html: """ Some &lt;long <span class="search-result">WORD</span> scenario <span class="search-result">word</span> name + """ + And I see the html: + """ + I have a <span class="search-result">word</span> """