2016-04-25 09:39:58 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
describe('Lemonldap::NG', function() {
|
|
|
|
describe('Logout_app', function() {
|
|
|
|
it('should allow logout_app_sso', function() {
|
|
|
|
browser.driver.get('http://test1.example.com:' + process.env.TESTWEBSERVERPORT + '/index.pl?logout_all');
|
|
|
|
});
|
|
|
|
it('should redirect after logout', function() {
|
2017-02-22 22:48:52 +01:00
|
|
|
expect(browser.getCurrentUrl()).toMatch(new RegExp('^https://lemonldap-ng\.org/welcome'));
|
2016-04-25 09:39:58 +02:00
|
|
|
});
|
|
|
|
it('should redirect to portal', function() {
|
|
|
|
browser.driver.get('http://test1.example.com:' + process.env.TESTWEBSERVERPORT + '/');
|
|
|
|
expect(browser.getCurrentUrl()).toMatch(new RegExp('^http://auth.example.com(:' + process.env.TESTWEBSERVERPORT + ')?/\\?url=aHR0cDovL3Rlc3QxLmV4YW1wbGUuY29tOjE5ODc2Lw=='));
|
|
|
|
});
|
|
|
|
});
|
2017-03-03 18:25:03 +01:00
|
|
|
});
|