mediawiki-skins-MinervaNeue/tests/browser/features/search.feature
jdlrobson b71bb0cc8c QA: Tagging changes from beta cluster
* features/search_loggedin.feature
They run on integration and are not super-business-critical.
Given their flakiness and Cirrus's likelihood of being down,
don't run it on beta cluster
* tests/browser/features/language.feature
Tag is superfulous, all scenarios repeat it.
* tests/browser/features/toggling.feature
ocassionally fails on firefox. Limit to Chrome and integration
tests
* tests/browser/features/search.feature
Limit the tests that run against beta cluster to search for
partial text and clicking a search result, since these are
two things we want to check integration well with other extensions.
The rest being testing on the more stable @integration tests
should be more than enough.

Change-Id: Ia2e8d3726212fee30725fdb9167ea38aa41eacbf
2018-11-27 17:53:00 -08:00

50 lines
1.8 KiB
Gherkin

@chrome @firefox @integration @test2.m.wikipedia.org @vagrant
Feature: Search
Background:
Given I am using the mobile site
And the page "Selenium search test" exists
And I am on the "Main Page" page
And I am viewing the site in mobile mode
And I click the search icon
And I see the search overlay
Scenario: Closing search (overlay button)
When I click the search overlay close button
Then I should not see the search overlay
Scenario: Closing search (browser button)
When I click the browser back button
Then I should not see the search overlay
@smoke @integration @en.m.wikipedia.beta.wmflabs.org
Scenario: Search for partial text
When I type into search box "Selenium search tes"
Then search results should contain "Selenium search test"
Scenario: Search with search in pages button
When I type into search box "Test is used by Selenium web driver"
And I see the search in pages button
And I click the search in pages button
Then I should see a list of search results
Scenario: Search with enter key
When I type into search box "Test is used by Selenium web driver"
And I press the enter key
Then I should see a list of search results
Scenario: Going back to the previous page
When I type into search box "Selenium search tes"
When I click a search result
When I click the browser back button
Then I should not see '#/search' in URL
@integration @en.m.wikipedia.beta.wmflabs.org
Scenario: Search doesn't break after one search result
When I type into search box "Selenium search tes"
And I click a search result
And the text of the first heading should be "Selenium search test"
And I click the search icon
And I type into search box "Main Page"
Then search results should contain "Main Page"