Skip to content

Commit

Permalink
Turn off webgl on puppeteer loading, see phetsims/aqua#174
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Apr 28, 2023
1 parent 7b007e9 commit e1552ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/phet-io/generatePhetioMacroAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ const generatePhetioMacroAPI = async ( repos, options ) => {

return withServer( async port => {
const browser = await puppeteer.launch( {
timeout: 120000
timeout: 120000,
args: [
'--disable-gpu'
]
} );
const chunks = _.chunk( repos, options.chunkSize );

Expand Down
6 changes: 5 additions & 1 deletion js/scripts/hook-pre-commit-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ const repo = getArg( 'repo' );
return true;
}
else {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch( {
args: [
'--disable-gpu'
]
} );

const result = await withServer( async port => {
return puppeteerQUnit( browser, `http://localhost:${port}/${testFilePath}?ea&brand=phet-io` );
Expand Down

0 comments on commit e1552ae

Please sign in to comment.