Skip to content

Commit

Permalink
Merge pull request #199 from jdlrobson/pageIssues
Browse files Browse the repository at this point in the history
Page issues
  • Loading branch information
montehurd authored Jul 27, 2023
2 parents 6de786c + 4cd58ee commit 32142f1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.database
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM mariadb:10.6.7

COPY src/seedDb.sh /docker-entrypoint-initdb.d/

ARG database="database_2023-02-03_17-35-51-0600(CST).tar.gz"
ARG database="database_2023-07-27_14-24-02-0700(PDT).tar.gz"

RUN apt-get update && apt-get install -y \
curl \
Expand Down
5 changes: 4 additions & 1 deletion LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
$wgUseInstantCommons = true;

# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
Expand Down Expand Up @@ -181,6 +181,9 @@
'manualRecache' => false,
];

// Shortcut for thanking.
$wgThanksSendToBots = true;

# Content Provider used to show articles from enwiki. Can be helpful when trying to see how
# production articles look locally, but be aware that there are some gotchas
# with using this that don't perfectly match the production environment. Use at
Expand Down
14 changes: 13 additions & 1 deletion configMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,19 @@ const tests = [
},
{
label: 'Diff page logged in (#minerva #mobile #logged-in)',
path: '/wiki/Special:MobileDiff/335'
path: '/wiki/Special:MobileDiff/358'
},
{
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
2 changes: 1 addition & 1 deletion src/engine-scripts/puppet/minerva/clickBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
module.exports = async ( page, selector ) => {
await page.evaluate( async ( s ) => {
const btn = document.querySelector( s );
await btn.click();
btn.click();
}, selector );
await page.waitForSelector( '.drawer,.overlay' );
};
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 32142f1

Please sign in to comment.