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 offScreen test failing in Chrome #373

Merged
merged 1 commit into from
Jun 24, 2017
Merged

Conversation

WilcoFiers
Copy link
Contributor

  • Errors got swallowed by the browser testrunner. That’s fixed now
  • Chrome was failing one of the tests due to not cleaning up scroll position

@WilcoFiers WilcoFiers changed the base branch from master to develop June 20, 2017 15:31
@@ -71,6 +71,7 @@ module.exports = function (grunt) {
if (urls.length > 0) {
return runTestUrls(driver, urls, errors);
} else {
driver.quit();
return Promise.resolve(errors);
Copy link
Contributor

@dylanb dylanb Jun 21, 2017

Choose a reason for hiding this comment

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

shouldn't you call resolve inside a then after the quit?

return driver.quit().then(function () {
  Promise.resolve(errors);
});

@marcysutton
Copy link
Contributor

marcysutton commented Jun 21, 2017

I think these test timeouts could use your expertise @dylanb.

Also let's be sure to squash this PR when it gets merged since it has a commit that doesn't adhere to our policy.

@dylanb
Copy link
Contributor

dylanb commented Jun 24, 2017

ok, I fixed the tests - took two changes

The approach I took to syncing the iframe loading could be generalized to all iframe tests by creating a utility function that we include in all iframes that allows us to tell when the iframe has loaded.

@dylanb dylanb merged commit 50b5a20 into develop Jun 24, 2017
@WilcoFiers
Copy link
Contributor Author

Awesome!! Thanks Dylan. That's why you're the iframe king :P

@WilcoFiers WilcoFiers deleted the fix/chrome-offscreen branch June 29, 2017 14:29
mrtnvh pushed a commit to mrtnvh/axe-core that referenced this pull request Nov 24, 2023
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.

3 participants