Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page issues #199

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -179,6 +179,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