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
✅ Add e2e test for <amp-lightbox-gallery>
#22964
Conversation
This simply opens/closes the gallery to make sure nothing major is broken.
@@ -52,7 +52,7 @@ <h2>Open with expanded caption</h2> | |||
<amp-img | |||
on="tap:lg.open(expandDescription = true)" | |||
lightbox="caption" | |||
src="https://picsum.photos/300/200" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, local images are probably a better idea
'http://localhost:8000/test/manual/amp-lightbox-gallery-launch.amp.html', | ||
initialRect: {width: pageWidth, height: pageHeight}, | ||
// TODO(sparhami) Get this working in other environments. | ||
environments: ['single'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens when it runs in the others? is it something to do with screen sizing or is it something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't dig too deeply, but when I ran locally, the page didn't show up in the viewer or shadow environments. I think it could be something about my local config though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This simply opens/closes the gallery to make sure nothing major is broken.
Add a single test for now, will work on adding more tests later.