Skip to content

Fix SauceLabs tests #1920

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

Merged
merged 14 commits into from
Sep 18, 2019
Merged

Fix SauceLabs tests #1920

merged 14 commits into from
Sep 18, 2019

Conversation

mmermerkaya
Copy link
Contributor

No description provided.

@Feiyang1 Feiyang1 self-assigned this Jun 26, 2019
@Feiyang1
Copy link
Member

Feiyang1 commented Jul 1, 2019

  1. Installations tests are working correctly in saucelabs.
  2. performance is failing in Firefox and Edge because localStorage can't be directly stubbed in them. Cannot Stub localStorage in Firefox 35 sinonjs/sinon#662
    The workaround is to have a wrapper around the native APIs and stub the wrapper. @alikn - I can do it if you feel okay.

performance also doesn't work in IE because of a syntax error I don't know what is causing it yet.

@Feiyang1 Feiyang1 assigned mmermerkaya and alikn and unassigned Feiyang1 Jul 1, 2019
@mmermerkaya
Copy link
Contributor Author

Thanks for figuring all this out! Sounds like there's nothing for me to do. 😄

const TYPED_ARRAY_REPRESENTATION = new TextEncoder().encode('hello world');
const BASE_64_REPRESENTATION = btoa('hello world');
const str = 'hello world';
const TYPED_ARRAY_REPRESENTATION = new Uint8Array(str.length);
Copy link
Member

@Feiyang1 Feiyang1 Jul 12, 2019

Choose a reason for hiding this comment

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

Changed so it works in IE11 without TextEncoder polyfill, though there still are many tests failing in IE11 (due to indexedDB?). Is installations designed to work in IE11 ? @mmermerkaya

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Installations should work in IE11. I have not received any bug reports about it not working in IE11.

@Feiyang1 Feiyang1 assigned mmermerkaya and unassigned alikn Jul 12, 2019
@Feiyang1 Feiyang1 changed the title Fix SauceLabs tests for Installations and Performance Fix SauceLabs tests Jul 16, 2019
@Feiyang1 Feiyang1 force-pushed the mmermerkaya-fix-saucelabs branch from 2f2fe61 to 29c054b Compare September 18, 2019 17:58
@Feiyang1
Copy link
Member

Feiyang1 commented Sep 18, 2019

The PR fixes the saucelabs testing infrastructure and unit tests for some SDKs.
Performance and Installations are still failing for IE11. I will merge this PR first, then fix them in the separate PRs.

@Feiyang1 Feiyang1 merged commit 353fc52 into master Sep 18, 2019
@firebase firebase locked and limited conversation to collaborators Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants