Skip to content

Commit

Permalink
Add UI regression tests for Special:Homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
jdlrobson committed Jul 27, 2023
1 parent a772baa commit 6acbea7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ const tests = [
{
label: 'Page issues (#minerva #mobile)',
path: '/wiki/Page_issue'
},
{
label: 'Special:Homepage (#minerva #mobile #logged-in)',
path: '/wiki/Special:Homepage'
},
{
label: 'Special:Homepage overlay (#minerva #mobile #logged-in #click-edit-suggestions)',
path: '/wiki/Special:Homepage'
}
];

Expand Down
3 changes: 3 additions & 0 deletions src/engine-scripts/puppet/onReady.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ module.exports = async ( page, scenario ) => {
if ( hashtags.includes( '#click-redlink' ) ) {
await clickBtn( page, 'a.new' );
}
if ( hashtags.includes( '#click-edit-suggestions' ) ) {
await clickBtn( page, '.growthexperiments-homepage-module-header-nav-icon' );
}
}

// Run Echo handlers if necessary.
Expand Down

0 comments on commit 6acbea7

Please sign in to comment.