Skip to content

Fix most amp-bind integration tests#9577

Merged
kmh287 merged 2 commits intoampproject:masterfrom
dreamofabear:bind-carousel-test
May 26, 2017
Merged

Fix most amp-bind integration tests#9577
kmh287 merged 2 commits intoampproject:masterfrom
dreamofabear:bind-carousel-test

Conversation

@dreamofabear
Copy link
Copy Markdown

@dreamofabear dreamofabear commented May 26, 2017

Partial for #9571. Fix and un-skip a bunch of tests.

  • Reworked amp-carousel test to not require internal APIs. Also, flakiness fixed by making sure it gets laid out.
  • Fixed timeouts due to amp:bind:initialize event firing before the listener was added.

All un-skipped tests now pass locally on Firefox 53 on OS X. A few are left.

/to @kmh287

@dreamofabear dreamofabear requested a review from kmh287 May 26, 2017 00:06
const impl = carousel.implementation_;
expect(slideNum.textContent).to.equal('0');
impl.go(1, /* animate */ false);
const nextSlideButton =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great!

@kmh287 kmh287 merged commit 4594489 into ampproject:master May 26, 2017
@dreamofabear
Copy link
Copy Markdown
Author

dreamofabear commented May 26, 2017

@kmh287 Appreciate the initiative but merge was a bit premature.

Firefox tests are fixed but some failures on Chrome 45 and Chrome Mobile 44 still: https://travis-ci.org/ampproject/amphtml/jobs/236386931 😭

@dreamofabear dreamofabear deleted the bind-carousel-test branch May 26, 2017 16:06
@kmh287
Copy link
Copy Markdown
Contributor

kmh287 commented May 26, 2017

Sorry, got too excited. 😢

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.

4 participants