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

Fix test suite instability #70

Merged
merged 1 commit into from
Sep 25, 2020
Merged

Fix test suite instability #70

merged 1 commit into from
Sep 25, 2020

Conversation

wejendorp
Copy link
Contributor

@wejendorp wejendorp commented Sep 24, 2020

IE fails w/ permissionError when trying to use a removed iframe as a key
during cleanup. When cleanup fails, timeouts are not cleared, and the tests fail.

This commit introduces an appId to token map, that allows cleanup to
happen regardless of window state / cross origin issues.

@wejendorp
Copy link
Contributor Author

Omg I think I finally got it to be not flaky!

Copy link
Contributor

@Kian-Esmaeilpour Kian-Esmaeilpour left a comment

Choose a reason for hiding this comment

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

Nice job! LGTM but there are couple of things,
First please also update the README file: https://github.com/Tradeshift/io/blame/master/README.md#L194
Second, this is a breaking change IMO and we should bump major version, based on my search with livegrep Chrome is the only place using it, and it would be, hopefully, an easy update 👍

IE fails w/ permissionError when trying to use a removed iframe as a key
during cleanup. This causes the cleanup to fail.

This commit introduces an appId to token map, that allows cleanup to
happen regardless of window state.

BREAKING CHANGE: hub.forgetApp API signature now requires appId as well
as target window.
@Kian-Esmaeilpour Kian-Esmaeilpour merged commit 8448df7 into master Sep 25, 2020
@Kian-Esmaeilpour Kian-Esmaeilpour deleted the test-fix branch September 25, 2020 07:28
@tradeshiftcicomponents
Copy link
Contributor

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants