mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-04 10:39:08 +00:00
6e9d56efa6
Per T199939#5096023 use job runner to execute the job runner as part of the test to ensure the API can return categories for a page. Bug: T219920 Change-Id: I467f6635fd0d80a01428f6b06a8c750430d63d6d
39 lines
1 KiB
JavaScript
39 lines
1 KiB
JavaScript
const { iClickOnTheCategoryButton,
|
|
iShouldSeeTheCategoriesOverlay,
|
|
iShouldSeeAListOfCategories
|
|
} = require( '../features/step_definitions/category_steps' ),
|
|
{
|
|
iAmInAWikiThatHasCategories
|
|
} = require( '../features/step_definitions/create_page_api_steps' ),
|
|
{
|
|
iAmUsingTheMobileSite,
|
|
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
|
|
iAmUsingTheMobileSite();
|
|
|
|
// 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();
|
|
|
|
iShouldSeeAListOfCategories();
|
|
} );
|
|
} );
|