Created
June 29, 2020 18:31
-
-
Save zeke/f95c0aa7cf0003a3f63288cdcf5d42f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe.only('developer.github.com pages', () => { | |
jest.setTimeout(30 * 60 * 1000) | |
it('works', async () => { | |
const urls = require('./top-old-developer-site-paths.json') | |
.slice(0, 10) | |
console.log({ urls }) | |
for (const url of urls) { | |
await page.goto(`http://localhost:4001${url}`) | |
await page.setViewport({ width:1200, height:300 }) | |
await page.screenshot({ path: path.join(__dirname, `developer-${paramCase(url)}.png`), fullPage: true }) | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment