Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for 400ms before capturing a screenshot #8167

Merged
merged 4 commits into from Jun 23, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jun 22, 2015

Because PhantomJS might just re-render the whole page as we changed the viewport size just before.

This could fix some random build failures

@tsteur tsteur added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Jun 22, 2015
@tsteur tsteur added this to the 2.14.1 milestone Jun 22, 2015
@tsteur tsteur force-pushed the wait_before_taking_screenshot branch from 249e812 to 4fb1f1c Compare June 22, 2015 22:50
… the whole page

This could fix some random build failures
@tsteur tsteur force-pushed the wait_before_taking_screenshot branch from 4fb1f1c to 4911a2d Compare June 23, 2015 00:53
@mattab
Copy link
Member

mattab commented Jun 23, 2015

We are not sure whether this really helps, so we will merge it and see what happens. If we still have as many random failures, we could revert this Pull request back. Refs #6693

mattab pushed a commit that referenced this pull request Jun 23, 2015
Wait for 400ms before capturing a screenshot
@mattab mattab merged commit abde344 into master Jun 23, 2015
@tsteur tsteur deleted the wait_before_taking_screenshot branch June 23, 2015 21:19
@tsteur
Copy link
Member Author

tsteur commented Jun 23, 2015

FYI: In case this does not work we could try to force a re-render before capturing a screenshot by increasing the window size by 1px. This could fix random issues as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants