Last active
August 29, 2015 14:01
-
-
Save feroult/76d2d76fc80e3ec592d4 to your computer and use it in GitHub Desktop.
Appengine devserver login/logout with QUnit Page JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See qunit-pages: https://github.com/murer/qunit-page | |
function login(page, user) { | |
page.step('login', function() { | |
page.stop(); | |
$.get("/_ah/logout?continue=/blank.html", function(data) { | |
console.info("logout"); | |
$.post('/_ah/login?continue=/blank.html', { | |
'email' : user + '@wavez', | |
'continue' : '/blank.html', | |
'action' : 'Log In' | |
}, function(data) { | |
console.info("login"); | |
page.start(); | |
}); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment