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 sticky-ad #16829

Closed
wants to merge 2 commits into from

Conversation

zhouyx
Copy link
Contributor

@zhouyx zhouyx commented Jul 17, 2018

For #11425

{
"url": "examples/visual-tests/amp-sticky-ad/amp-sticky-ad-wrapper.html",
"name": "AMP Sticky Ad",
"loading_complete_css": ["ready-for-visual-diff"]
Copy link
Member

Choose a reason for hiding this comment

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

I believe this would not work, because the page that gets tested is the wrapper, and the browser will be looking for the CSS class in that page, not inside the iframe. How about sending a message from inside the iframe to the container document, and have the container document add the ready-for-visual-diff class to the iframe on message receipt?

nit: it should be .ready-for-visual-diff, i.e. preceded by a dot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! Good point! Switched to postMessage.

@@ -423,10 +428,6 @@
"url": "examples/visual-tests/amp-by-example/components/amp-springboard-player/index.html",
"name": "amp-springboard-player - Amp By Example"
},
{
Copy link
Member

Choose a reason for hiding this comment

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

eh, leave it in place. It doesn't cost us anything and will be automatically re-added next time I run the ABE-copying script :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😄 Reverted

@codecov-io
Copy link

Codecov Report

Merging #16829 into master will decrease coverage by 0.91%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #16829      +/-   ##
==========================================
- Coverage   78.05%   77.14%   -0.92%     
==========================================
  Files         558      559       +1     
  Lines       40443    40508      +65     
==========================================
- Hits        31569    31249     -320     
- Misses       8874     9259     +385
Flag Coverage Δ
#integration_tests 100% <ø> (+65.14%) ⬆️
#unit_tests 77.14% <ø> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d06b18d...e09ce42. Read the comment docs.

@zhouyx zhouyx added the Blocked label Jul 18, 2018
@zhouyx zhouyx force-pushed the sticky-visual-test branch from e09ce42 to 344964d Compare July 18, 2018 18:51
@zhouyx
Copy link
Contributor Author

zhouyx commented Jul 20, 2018

Blocked and close for now

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