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

✅ Add visual test for amp-autocomplete #22045

Merged
merged 3 commits into from Apr 29, 2019

Conversation

caroqliu
Copy link
Contributor

@caroqliu caroqliu commented Apr 29, 2019

Add visual test for amp-autocomplete rendering and displaying items on focus for plain-text inline data.

Copy link
Contributor

@cvializ cvializ left a 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>
Copy link
Contributor

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

Copy link
Member

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 :)

Copy link
Contributor Author

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>
Copy link
Contributor

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"

@cvializ cvializ merged commit 14431a0 into ampproject:master Apr 29, 2019
@caroqliu caroqliu deleted the visual-test-split branch September 6, 2019 15:50
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.

None yet

5 participants