Verify logout

This commit is contained in:
Xavier Guimard 2016-02-27 06:53:29 +00:00
parent 43accac06e
commit 16471f24c4

View File

@ -5,7 +5,8 @@
describe('Lemonldap::NG auth mechanism', function() {
it('should allow logout', function() {
browser.driver.get('http://auth.example.com:' + process.env.TESTWEBSERVERPORT + '/?logout=1');
browser.driver.get('http://test1.example.com:' + process.env.TESTWEBSERVERPORT + '/logout');
expect(browser.getCurrentUrl()).toMatch(new RegExp('^http://auth.example.com(:' + process.env.TESTWEBSERVERPORT + ')?'));
});
});
});