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 visual test for amp-autocomplete #22045
Conversation
Remove second test case
0f5737d
to
dfd35eb
Compare
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!
</script> | ||
<script async src="https://cdn.ampproject.org/v0.js"></script> | ||
<script async custom-element="amp-autocomplete" src="https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"></script> | ||
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-latest.js"></script> |
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 think we prefer to use specific versions for the extensions. There are other visual tests that use *-latest.js
, but unless these tests have a good reason to use latest, let's use amp-mustache-0.2.js
and amp-form-0.1.js
@danielrozenberg to verify
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 don't have a specific preference here and there's definitely no strict policy. Your reasoning is sound though, it makes sense to pin this to a specific version because you're not testing amp-mustache here :)
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.
Done. This also helped me notice that amp-mustache
isn't needed for this test, so removed it for now.
</script> | ||
<script async src="https://cdn.ampproject.org/v0.js"></script> | ||
<script async custom-element="amp-autocomplete" src="https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"></script> | ||
<script async custom-template="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script> |
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.
nit: sorry I missed this last time, but this should say custom-element="amp-form"
instead of custom-template="amp-form"
Add visual test for amp-autocomplete rendering and displaying items on focus for plain-text inline data.