-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix various issues with the inabox integration tests #20972
Conversation
So this is not quite ready yet, there's still a couple of issues that just arised:
|
Notably this allows Safari to pass the friendly frame case without needing the host script
1dc3c90
to
07ef7bb
Compare
On Firefox occasionally the window may not scroll down all the way, barely missing out on the 50% mark.
@lannka can you take a look? |
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.
Good job!
@lannka So bad news the BTF tests are failing on master again. This time, the weird issue is they only fail when run with the full integration suite; I can confirm that they pass when ran on their own. I'll debug this tomorrow; if I can't submit a fix I'll make another PR to disable them and unbreak master. On the bright side the part that I really want in (fetching amp-analytics locally) works. Sorry for the trouble again! |
* Fix various issues with the inabox integration tests. * Try referencing window directly * Load safeframe from the Karma test server. * Disable the problematic tests to verify the rest works * Skip safe frame tests on Firefox * lint * Properly test inabox-viewport-friendly flag. Notably this allows Safari to pass the friendly frame case without needing the host script * lint * Trivial comment * Relax the min percentage visible restriction. On Firefox occasionally the window may not scroll down all the way, barely missing out on the 50% mark.
* Fix various issues with the inabox integration tests. * Try referencing window directly * Load safeframe from the Karma test server. * Disable the problematic tests to verify the rest works * Skip safe frame tests on Firefox * lint * Properly test inabox-viewport-friendly flag. Notably this allows Safari to pass the friendly frame case without needing the host script * lint * Trivial comment * Relax the min percentage visible restriction. On Firefox occasionally the window may not scroll down all the way, barely missing out on the 50% mark.
While I was there I also upgraded the safe frame version to the latest release, and add test coverage for the inabox-viewport-friendly flag.