Skip to content

Commit

Permalink
More testing improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed May 14, 2024
1 parent a0ba32b commit 5089fc6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions js/scripts/test/release-branch-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,19 @@ const localeData = JSON.parse( fs.readFileSync( '../babel/localeData.json', 'utf

// Locale-specific file testing (everything has _es)
{
const esSpecificLocale = await puppeteerLoad( getLocaleSpecificURL( 'es' ), {
evaluate: () => {
return phet.chipper.locale;
},
gotoTimeout: 60000,
waitAfterLoad: 2000,
browser: browser
} );
if ( !url.includes( 'phet-io' ) && !url.includes( 'phetio' ) ) {
const esSpecificLocale = await puppeteerLoad( getLocaleSpecificURL( 'es' ), {
evaluate: () => {
return phet.chipper.locale;
},
gotoTimeout: 60000,
waitAfterLoad: 2000,
browser: browser
} );

if ( esSpecificLocale !== 'es' ) {
console.log( ' _es.html locale not es' );
if ( esSpecificLocale !== 'es' ) {
console.log( ' _es.html locale not es' );
}
}
}
}
Expand Down

0 comments on commit 5089fc6

Please sign in to comment.