mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
1903d1adae
On the Selenium daily job, there are 2 domains - https://en.wikipedia.beta.wmflabs.org and https://en.m.wikipedia.beta.wmflabs.org Currently the cookie gets set on the former, meaning it doesn't work This should take care of this, while also accounting for running the browser tests (as we do in the zuul runs) in a single domain Bug: T219920 Change-Id: I54838fb8aba559c4d72c444968493dff2de9b4f9
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
const { iClickOnTheCategoryButton,
|
|
iShouldSeeTheCategoriesOverlay,
|
|
iShouldSeeAListOfCategories
|
|
} = require( '../features/step_definitions/category_steps' ),
|
|
{
|
|
iAmInAWikiThatHasCategories
|
|
} = require( '../features/step_definitions/create_page_api_steps' ),
|
|
{
|
|
iAmOnPage, iAmInBetaMode
|
|
} = require( '../features/step_definitions/common_steps' );
|
|
|
|
// Feature: Categories
|
|
describe( 'Categories', function () {
|
|
// Scenario: I can view categories
|
|
it( 'I can view categories', function () {
|
|
const title = 'Selenium categories test page';
|
|
// Given I am in a wiki that has categories
|
|
iAmInAWikiThatHasCategories( title );
|
|
|
|
// And I am using the mobile site
|
|
// And I am in beta mode
|
|
iAmInBetaMode();
|
|
|
|
// And I am on the "Selenium categories test page" page
|
|
iAmOnPage( title );
|
|
|
|
// When I click on the category button
|
|
iClickOnTheCategoryButton();
|
|
|
|
// Then I should see the categories overlay
|
|
iShouldSeeTheCategoriesOverlay();
|
|
|
|
// FIXME: This check is partially skipped as there is no way to lower $wgJobRunRate
|
|
// See: T199939#5095838
|
|
try {
|
|
iShouldSeeAListOfCategories();
|
|
} catch ( e ) {
|
|
// pass.
|
|
// eslint-disable-next-line no-console
|
|
console.warn( 'Unable to check the list of the categories. Is wgJobRunRate set correctly?' );
|
|
}
|
|
} );
|
|
} );
|