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

Uptime not handling different sized screenshots (mobile) particularly well #339

Closed
paulb-elastic opened this issue Jul 13, 2021 · 6 comments · Fixed by elastic/kibana#106128
Assignees
Labels
bug Something isn't working polish make our app shine by smoothing out the rough spots test-plan v7.15.0

Comments

@paulb-elastic
Copy link

Kibana 7.14 (local, checked with build just now)

When using mobile device emulation in a Synthetics test, for example with:

playwrightOptions: {
	userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
	viewport: {
		width: 375,
		height: 667,
	},
	deviceScaleFactor: 2,
	isMobile: true,
	hasTouch: true,
}

Uptime has trouble showing the different sized image in some places.

Hovers and clicks to see the big (non thumbnail) image seems to be ok

Click to expand

image

Test result history seems ok:

Click to expand

image

Clicking through to a test result seems ok

Click to expand

image

However, expanding the step does not give enough space for the image:

Video_2021-07-13_114716

(in this animation, I have scrolled all the way to the bottom of the screen, but the image is being chopped off.

@paulb-elastic paulb-elastic added bug Something isn't working v7.14.0 [zube]: Ready labels Jul 13, 2021
@vigneshshanmugam
Copy link
Member

vigneshshanmugam commented Jul 13, 2021

@paulb-elastic This is a bug because of the way our Synthetics agent chops the given image based on the dimensions of the device, When we construct squares from the given dimensions, if the block results in floating point number, we chop that value off and always go for the nearest truncated value to make sure the underlying library is able to construct block - As a result we are missing few dimensions of the image which is shown in the final screenshot output.

I mentioned in the fix - elastic/synthetics#340, but should have pinged the team about it.

@vigneshshanmugam
Copy link
Member

Should not have jumped in early without seeing the full screenshots. This is not related to synthetics agent, Probably a UI bug.

I was referring to the black borders around the image which you wont see for any desktop screenshots.

@andrewvc
Copy link
Contributor

I'm still seeing this on 7.15. I accidentally tested this as part of the 7.15 test plan:

image

@andrewvc andrewvc added v7.15.0 and removed v7.14.0 labels Aug 20, 2021
@justinkambic
Copy link

@andrewvc how does it look when you expand the row? IIRC the original complaint in this issue was that the image rendered way incorrectly for "portrait" aspect ratios (per the GIF in the issue description). While the image in the row does look somewhat goofy compared to desktop screenshots, we never changed that rendering as a part of this fix. I think if we did make it so the rows didn't grow at all for the thumbnail, it might be really tough to make out detail.

@paulb-elastic
Copy link
Author

We confirmed that the original issue (of not being able to see the full height of the image) is still working in 7.15.

@paulb-elastic
Copy link
Author

elastic/synthetics#371 raised to cover the separate issue of the border that is sometimes visible with some viewports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working polish make our app shine by smoothing out the rough spots test-plan v7.15.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants