Skip to content

Commit

Permalink
Merge pull request #2129 from thostetler/fix-timezone-test-issue
Browse files Browse the repository at this point in the history
Force EST timezone for tests
  • Loading branch information
shinyichen authored Mar 12, 2021
2 parents e80c746 + c1156d5 commit f41f38b
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 151 deletions.
3 changes: 3 additions & 0 deletions grunt/puppet.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ module.exports = function(grunt) {
// start a headless browser session
const browser = await puppeteer.launch(options.launchOptions);
const page = await browser.newPage();

// assume EST
await page.emulateTimezone('America/New_York');
await page.goto('http://localhost:8000/test/mocha/tests.html', {
waitUntil: 'networkidle0',
});
Expand Down
Loading

0 comments on commit f41f38b

Please sign in to comment.