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

✅ Skip borked on= tests for IE11 #30407

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

rcebulko
Copy link
Contributor

@rcebulko rcebulko commented Sep 25, 2020

After lots of digging, I can't track down the source of this issue. The error message is cryptic:

image

When enabling logging and digging deeper, the root seems to come from a SyntaxError within an unhandled promise rejection, but it's been impossible to determine the source of the SyntaxError itself. Further digging might yield useful information, but for know this test should just be skipped until a fix is indentified. (See #30372 for the long, painful slog attempting to log something of use to squash this issue)

Part of broad effort under #28152 to enable IE11 integration tests as blocking

@google-cla google-cla bot added the cla: yes label Sep 25, 2020
@rcebulko rcebulko marked this pull request as ready for review September 25, 2020 17:35
@@ -17,7 +17,7 @@
import {AmpEvents} from '../../src/amp-events';
import {createFixtureIframe, poll} from '../../testing/iframe.js';

describe('on="..."', () => {
describe.configure().run('on="..."', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Per my understanding, changing describe( to describe.configure().run( is a no-op, since there's nothing between the configure() and the run(. Also, since IE tests are opt-in, a plain describe( block will not run on IE.

Is this different from what you're seeing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

describe by itself appears to just be the Mocha global. __init_tests.js is what adds describe.configure, which actually instantiates the custom TestConfig we use, and it's within that constructor that IE is skipped by default. That's why adding it here causes the test to skip:
Here:
image
Elsewhere:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that above, you can see A) 21 tests are executed (not 22, which included the one that failed) B) the failure caused all other tests in that file not to register, whereas now it counts them as skipped (ie. 466 vs 469)

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Thanks for the clarification. Another reason in favor of removing legacy describe tests (#24144).

@@ -17,7 +17,7 @@
import {AmpEvents} from '../../src/amp-events';
import {createFixtureIframe, poll} from '../../testing/iframe.js';

describe('on="..."', () => {
describe.configure().run('on="..."', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Thanks for the clarification. Another reason in favor of removing legacy describe tests (#24144).

@rcebulko rcebulko merged commit ebaa377 into ampproject:master Sep 25, 2020
@rcebulko rcebulko deleted the ie11-skip-ontap branch September 25, 2020 18:27
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
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

3 participants