mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-03 18:26:16 +00:00
acb0051bcd
We only need to opt into beta to test the beta indicator displays. There is no need to do this anywhere else in our browser tests. For the categories test we will enable the feature flag in test mode and not run it against the beta cluster. Bug: T174018 Change-Id: I83b5f24236cef6ddd6fc1882bdfff3618a8bf599
50 lines
1.8 KiB
Gherkin
50 lines
1.8 KiB
Gherkin
@chrome @en.m.wikipedia.beta.wmflabs.org @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
|
|
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
|
|
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"
|