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

Initial test to see if screenshot timing is the prob. #5932

Closed
wants to merge 11 commits into from

Conversation

LeeDr
Copy link

@LeeDr LeeDr commented Jan 18, 2016

Initial test to see if screenshot timing is the prob.

@LeeDr
Copy link
Author

LeeDr commented Jan 18, 2016

I know we don't want fragile sleep's in the tests but 4 seconds before each screenshot fixes the problems where the actual charts were blank. Examples here;
http://build-eu-00.elastic.co/job/kibana_core_pr/1770/s3/

@jbudz
Copy link
Member

jbudz commented Jan 18, 2016

As a less fragile alternative would a tryForTime until the chart appears be possible?

@LeeDr
Copy link
Author

LeeDr commented Jan 18, 2016

@jbudz I could, but I don't have one generic method to get chart data as it depends on the type of chart. So each test would have to tryForTime a call to get the chart data for that chart type and test that the size of the returned data > 0. And what I realize now, is that the tests for getting the chart data do not have a tryForTime, but they work because they come after these 'save, load, screenshot' tests and the charts are done loading by that time.

@jbudz
Copy link
Member

jbudz commented Jan 18, 2016

If screenshots need to get working, and the sleeps aren't part of the pass/fail testing, I'm not going to be overly picky. A comment explaining why the sleep needs to happen might be useful. The changes without 9157cf7 LGTM

@jbudz jbudz assigned LeeDr and unassigned jbudz Jan 18, 2016
@LeeDr
Copy link
Author

LeeDr commented Jan 19, 2016

I had to use a short sleep in a couple of cases. I added comments for them.

@elasticsearch-bot
Copy link

Lee Drengenberg merged this into the following branches!

Branch Commits
master 4c5f822, d41f985, e2face2, 967cc0c, c0d049c, f480b9b, df6c34f, 540ca8e, 6673721, 86ab222, 40f8450
4.x 1b13204, bc9ffa3, c9f9ad5, c25bc1f, ff033eb, 1f7936c, a9d2d83, 6654e50, f68c78b, 38578ad, 55c46f3

elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jan 19, 2016
@LeeDr LeeDr deleted the fixScreenshots branch January 27, 2016 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants