mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 10:50:52 +00:00
8ad57f9b0e
Changes: * Default skin is not configured so noticed on test runs it's using Default skin for desktop mode. Given this has no footer and way to switch to mobile this could be problematic in future. * Remove empty README * Drop suggested language integration test - setting up interwiki links currently happens via InterwikiLoadPrefix hook however this seems to be unreliable. The beta cluster is a much more reliable place to test language links so let's rely on that instead. * Drop unnecessary heading check from "Successful edit" scenario. It's unnecessary and flakey (presumably given the title doesn't change) * Rename test scenario and remove a duplicate scenario Depends-On: I888b3c546f77fa350853a7bf9bfbfbeb8ed6de67 Change-Id: I45792a95df7fd4c3299accbffadfa447baefe0ce
68 lines
2.7 KiB
Gherkin
68 lines
2.7 KiB
Gherkin
@chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org
|
|
Feature: Language selection
|
|
|
|
Background:
|
|
Given I am using the mobile site
|
|
|
|
@smoke @integration @en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Language button
|
|
Given I go to a page that has languages
|
|
Then I should see the switch-language page action
|
|
|
|
@smoke @integration @en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Language button (on a page that doesn't have languages)
|
|
Given I go to a page that does not have languages
|
|
Then I should see the disabled switch-language page action
|
|
|
|
@en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Tapping icon opens language overlay
|
|
Given I go to a page that has languages
|
|
When I click the switch-language page action
|
|
Then I should see the language overlay
|
|
|
|
@en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Tapping icon does not open language overlay (on a page that doesn't have languages)
|
|
Given I go to a page that does not have languages
|
|
When I click the switch-language page action
|
|
Then I should not see the languages overlay
|
|
|
|
@integration
|
|
Scenario: Tapping the disabled icon shows a toast
|
|
Given I go to a page that does not have languages
|
|
When I click the switch-language page action
|
|
Then I should see a toast with message "This page is not available in other languages."
|
|
|
|
@en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Closing language overlay (overlay button)
|
|
Given I go to a page that has languages
|
|
When I click the switch-language page action
|
|
And I see the language overlay
|
|
And I click the language overlay close button
|
|
Then I should not see the languages overlay
|
|
|
|
@en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Closing language overlay (browser button)
|
|
Given I go to a page that has languages
|
|
When I click the switch-language page action
|
|
And I see the language overlay
|
|
And I click the browser back button
|
|
Then I should not see the languages overlay
|
|
|
|
@en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Checking that there are no suggested language links
|
|
Given I go to a page that has languages
|
|
When I click the switch-language page action
|
|
And I see the language overlay
|
|
Then I should not see a suggested language link
|
|
Then I should see a non-suggested language link
|
|
|
|
@smoke @en.m.wikipedia.beta.wmflabs.org
|
|
Scenario: Checking that the suggested language link has been created
|
|
Given I go to a page that has languages
|
|
And I click the switch-language page action
|
|
And I see the language overlay
|
|
And I click on a language from the list of all languages
|
|
And I click the browser back button
|
|
And I see the language overlay
|
|
Then I should see a suggested language link
|