Skip to content

Commit

Permalink
Add a browser test for mobile page issues, update diff page
Browse files Browse the repository at this point in the history
Update diff URL so that thanks feature is also being tested
  • Loading branch information
jdlrobson committed Jul 27, 2023
1 parent 37c482c commit a772baa
Show file tree
Hide file tree
Showing 4 changed files with 11 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 @@ -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
6 changes: 5 additions & 1 deletion configMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ 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'
}
];

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' );
};

0 comments on commit a772baa

Please sign in to comment.