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?
- [-] Changelog entry added
- [-] Documentation created/updated
- [-] API support added
- Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together