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 regression: Restore page size during getTestium #14

Merged
merged 1 commit into from
Oct 27, 2015

Conversation

jkrems
Copy link
Member

@jkrems jkrems commented Oct 27, 2015

This prevents .setPageSize calls from one test to leak into other tests. This restores the previous behavior of testium.

// For backwards-compatibility
module.exports = initTestium;

function clearCookies(testium) {
return Bluebird
.try(_.bindKey(testium.browser, 'clearCookies'))
.then(_.partial(debug, 'Cookies cleared'))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems unrelated to this PR, but not a problem per-se.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just a random consistency fix (e.g. the two others are instrumented with debug messages, so it seemed weird to leave this silent).

@ageitgey
Copy link
Collaborator

LGTM

jkrems added a commit that referenced this pull request Oct 27, 2015
Fix regression: Restore page size during getTestium
@jkrems jkrems merged commit 0e4134a into master Oct 27, 2015
@jkrems jkrems deleted the jk-restore-page-size branch October 27, 2015 18:53
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.

2 participants