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

Rewrite some amp-bind integration tests #19895

Merged
merged 9 commits into from Dec 20, 2018

Conversation

dreamofabear
Copy link

@dreamofabear dreamofabear commented Dec 14, 2018

Fixes #19789.

  • Rewrites (and reenable) several amp-bind E2E tests to use describes.integration instead of iframe fixtures.
  • Also, support extension versions in describes.integration.

@dreamofabear
Copy link
Author

/to @alabiaga

@@ -10,7 +10,7 @@
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script>
<script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script>
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-latest.js"></script>
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-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.

why this change? Should we use v0.2 as it is the version that will replace v0.1?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted.

}
AMP.registerTemplate('amp-mustache', AmpMustache);
AMP.extension(TAG, '0.2', function(AMP) {
// First, unregister template with to avoid "Duplicate template type"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "with" in comment.

// First, unregister template with to avoid "Duplicate template type.

Also there is a test failure now that seems to indicate that moving this logic is causing this issue to happen again.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@alabiaga alabiaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove describe.only in test-amp-selector.js.

@dreamofabear dreamofabear merged commit b93b559 into ampproject:master Dec 20, 2018
@dreamofabear dreamofabear deleted the reenable-bind-tests branch December 20, 2018 19:01
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
* Rewrite a few bind integration tests.

* Rewrite carousel tests too.

* Rewrite list and selector tests.

* Skip Edge due to 'Permission denied' errors.

* Support extension versions in describes.integration.

* Replace weirdly written test-selector-list.js with a unit test.

* Aaron's comments.

* Remove .only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix broken tests in test-amp-bind.js
3 participants