lemonldap-ng/e2e-tests/handler/11-logout_app_sso.js

16 lines
759 B
JavaScript
Raw Normal View History

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() {
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
});