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

enable applab embed ui tests on safari and firefox #17298

Merged
merged 1 commit into from Aug 30, 2017

Conversation

davidsbailey
Copy link
Member

@davidsbailey davidsbailey commented Aug 24, 2017

Background

applab embed ui tests have been disabled on firefox for some time now, and were recently disabled on Safari in #17297 after they were broken on Safari by #17133 . The previous implementation of this test (before PR 17133) no longer works because using jquery to inspect the iframe contents gives a same origin policy violation, now that applab (which is loaded within the iframe) uses firebase.

Description

This PR fixes the applab embed ui test on Safari by waiting for the iframe to load before telling selenium to switch to it, which avoids a timeout during the switch_to.frame operation in Safari. I also verified that the test is passing in Firefox after this change, although I did not explore why it was disabled in the first place.

@davidsbailey davidsbailey force-pushed the fix-applab-embed branch 2 times, most recently from 2f52508 to d3b9e95 Compare August 30, 2017 15:56
@davidsbailey davidsbailey changed the title WIP - Fix applab embed on safari and firefox enable applab embed ui tests on safari and firefox Aug 30, 2017
Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

Nice!

@davidsbailey
Copy link
Member Author

Merging with a green-enough circle run https://circleci.com/gh/code-dot-org/code-dot-org/47251 . Only the applab_embed and teacher-dashboard UI tests should be affected by these changes, and those are passing in all 3 browsers which ran.

@davidsbailey davidsbailey merged commit 70e2fe9 into staging Aug 30, 2017
@davidsbailey davidsbailey deleted the fix-applab-embed branch August 30, 2017 22:40
@pcardune
Copy link
Contributor

pcardune commented Sep 6, 2017

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants