Skip to content

Commit

Permalink
feat(fab): Remove empty fab from test. Add waitUntil idle to wait unt…
Browse files Browse the repository at this point in the history
…il the stylesheets finish
  • Loading branch information
williamernest committed Apr 11, 2018
1 parent b7f4a8d commit 43e58d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions test/screenshot/fab/standard.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import MaterialIcon from '../../../packages/material-icon';

ReactDOM.render((
<div>
<Fab>
</Fab>
<Fab className="demo-button">
<i className="material-icons">favorite</i>
</Fab>
Expand Down
2 changes: 1 addition & 1 deletion test/screenshot/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default class Screenshot {
async takeScreenshot_() {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(`http://localhost:8080/${this.urlPath_}`);
await page.goto(`http://localhost:8080/${this.urlPath_}`, { "waitUntil": "networkidle2" });
const imageBuffer = await page.screenshot();
await browser.close();
return imageBuffer;
Expand Down

0 comments on commit 43e58d4

Please sign in to comment.