mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-11 07:26:10 +00:00
a77fed0a55
This makes built assets available in jenkins, Also addresses miscellaneous feedback relating to configuration variable name and track topic name. Change-Id: Ic70d517eba96aab6512a96ea19d6be56b3664871
70 lines
1.5 KiB
JavaScript
70 lines
1.5 KiB
JavaScript
// @ts-nocheck
|
|
|
|
const testData = {
|
|
baseUrl: process.env.MW_SERVER,
|
|
pageUrl: '/wiki/Polar_bear?useskin=vector-2022',
|
|
loginUser: process.env.MEDIAWIKI_USER,
|
|
loginPassword: process.env.MEDIAWIKI_PASSWORD
|
|
};
|
|
|
|
module.exports = {
|
|
reportDir: 'log/a11y',
|
|
namespace: 'Vector',
|
|
defaults: {
|
|
viewport: {
|
|
width: 1200,
|
|
height: 1080
|
|
},
|
|
runners: [
|
|
'axe',
|
|
'htmlcs'
|
|
],
|
|
includeWarnings: true,
|
|
includeNotices: true,
|
|
hideElements: '#content',
|
|
chromeLaunchConfig: {
|
|
headless: true,
|
|
args: [
|
|
'--no-sandbox',
|
|
'--disable-setuid-sandbox'
|
|
]
|
|
}
|
|
},
|
|
tests: [
|
|
{
|
|
name: 'default',
|
|
url: testData.baseUrl + testData.pageUrl,
|
|
actions: [
|
|
'click #mw-sidebar-button'
|
|
]
|
|
},
|
|
{
|
|
name: 'logged_in',
|
|
url: testData.baseUrl + testData.pageUrl,
|
|
wait: '500',
|
|
actions: [
|
|
'click #p-personal-checkbox',
|
|
'wait for .vector-user-menu-login a to be visible',
|
|
'click .vector-user-menu-login a',
|
|
'wait for #wpName1 to be visible',
|
|
'set field #wpName1 to ' + testData.loginUser,
|
|
'set field #wpPassword1 to ' + testData.loginPassword,
|
|
'click #wpLoginAttempt',
|
|
'wait for #pt-userpage-2 to be visible', // Confirm login was successful
|
|
'click #mw-sidebar-button'
|
|
]
|
|
},
|
|
{
|
|
name: 'search',
|
|
url: testData.baseUrl + testData.pageUrl,
|
|
rootElement: '#p-search',
|
|
wait: '500',
|
|
actions: [
|
|
'click #searchInput',
|
|
'wait for .wvui-input__input to be added',
|
|
'set field .wvui-input__input to Test'
|
|
]
|
|
}
|
|
]
|
|
};
|