Skip to content

Move 'Search Snippets' Spinach feature to Rspec

What does this MR do?

Moves the Spinach feature features/snippet_search.feature to an RSpec feature spec/features/snippets/search_snippets_spec.rb.

Are there points in the code the reviewer needs to double check?

The search results page URL was being visited directly in the original Spinach test, using an encoded search query and specific parameters to trigger the snippet searches. I have changed the RSpect feature to fill in the search box on the snippets dashboard page to retrieve results to cover the missing test coverage on the search box and to avoid the feature test from relying on the implementation details of the search URL structure.

Why was this MR needed?

As part of deprecating the Spinach test suite.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#23036 (closed)

Merge request reports

Loading