Commit 71c07918 authored by Yadd's avatar Yadd
Browse files

Fix e2e tests

parent 5e0dee0a
Pipeline #1310 passed with stage
in 2 minutes and 17 seconds
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG', function() {
describe('00 Lemonldap::NG', function() {
describe('Auth mechanism', function() {
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('01 Lemonldap::NG Manager', function() {
describe('Tree display', function() {
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('02 Lemonldap::NG Manager', function() {
describe('translation', function() {
......@@ -27,4 +27,4 @@ describe('Lemonldap::NG Manager', function() {
});
});
});
});
\ No newline at end of file
});
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('05 Lemonldap::NG Manager', function() {
describe('Form control', function() {
......@@ -87,9 +87,9 @@ describe('Lemonldap::NG Manager', function() {
}
});
});
expect(element(by.id('t-virtualHosts/test1.example.com/post/n' + id)).getText()).toMatch(/^https?:\/\//);
expect(element(by.id('t-virtualHosts/test1.example.com/post/n' + id)).getText()).toMatch(/^https?:\/\ //);
id++;
}
});
});
});
\ No newline at end of file
});
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('06 Lemonldap::NG Manager', function() {
describe('Form control, part 2', function() {
......@@ -17,4 +17,4 @@ describe('Lemonldap::NG Manager', function() {
expect(skinChoice.count()).toEqual(1);
});
});
});
\ No newline at end of file
});
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('07 Lemonldap::NG Manager', function() {
describe('Form control, part 3 - authParams', function() {
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('07u Lemonldap::NG Manager', function() {
describe('Apply mechanism', function() {
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('08 Lemonldap::NG Manager', function() {
describe('Apply mechanism', function() {
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('10 Lemonldap::NG Manager', function() {
describe('SAML configuration', function() {
......@@ -59,4 +59,4 @@ describe('Lemonldap::NG Manager', function() {
expect(element(by.id('cfgnum')).getText()).toEqual('4');
});
});
});
});
\ No newline at end of file
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('11 Lemonldap::NG Manager', function() {
describe('OIDC OP configuration', function() {
......@@ -19,7 +19,7 @@ describe('Lemonldap::NG Manager', function() {
element(by.id('filetext')).sendKeys('{"c":"d"}');
element(by.id('t-oidcOPMetaDataNodes/new__op-example/oidcOPMetaDataExportedVars')).click();
element(by.css('.glyphicon-plus-sign')).click();
element(by.id('a-oidcOPMetaDataNodes/new__op-example/oidcOPMetaDataExportedVars')).click();
//element(by.id('a-oidcOPMetaDataNodes/new__op-example/oidcOPMetaDataExportedVars')).click();
element(by.id('t-oidcOPMetaDataNodes/new__op-example/oidcOPMetaDataExportedVars/n1')).click();
element(by.id('hashkeyinput')).clear().sendKeys('MyKey');
element(by.id('hashvalueinput')).clear().sendKeys('MyValue');
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('12 Lemonldap::NG Manager', function() {
describe('OIDC RP configuration', function() {
......@@ -15,7 +15,7 @@ describe('Lemonldap::NG Manager', function() {
element(by.id('a-oidcRPMetaDataNodes/new__rp-example')).click();
element(by.id('t-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataExportedVars')).click();
element(by.css('.glyphicon-plus-sign')).click();
element(by.id('a-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataExportedVars')).click();
//element(by.id('a-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataExportedVars')).click();
element(by.id('t-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataExportedVars/n1')).click();
element(by.id('hashkeyinput')).clear().sendKeys('MyKey');
element(by.id('hashvalueinput')).clear().sendKeys('MyValue');
......@@ -25,7 +25,7 @@ describe('Lemonldap::NG Manager', function() {
element(by.id('textinput')).clear().sendKeys('MyClientID');
element(by.id('t-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataOptionsExtraClaims')).click();
element(by.css('.glyphicon-plus-sign')).click();
element(by.id('a-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataOptionsExtraClaims')).click();
//element(by.id('a-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataOptionsExtraClaims')).click();
element(by.id('t-oidcRPMetaDataNodes/new__rp-example/oidcRPMetaDataOptionsExtraClaims/n2')).click();
element(by.id('hashkeyinput')).clear().sendKeys('MyClaim');
element(by.id('hashvalueinput')).clear().sendKeys('MyAttribute');
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('35 Lemonldap::NG Manager', function() {
it('should be able to restore an old configuration', function() {
browser.get('/#/confs/1');
......
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG Manager', function() {
describe('36 Lemonldap::NG Manager', function() {
describe('Diff interface', function() {
......
'use strict';
describe('Lemonldap::NG Manager', function() {
describe('40 Lemonldap::NG Manager', function() {
it('should display other modules', function() {
browser.get('/');
......@@ -11,7 +11,7 @@ describe('Lemonldap::NG Manager', function() {
});
describe('Lemonldap::NG Session explorer', function() {
describe('40 Lemonldap::NG Session explorer', function() {
var session, ip;
......@@ -50,4 +50,4 @@ describe('Lemonldap::NG Session explorer', function() {
expect(t.count()).toBeGreaterThan(0);
});
});
\ No newline at end of file
});
......@@ -2,7 +2,7 @@
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Lemonldap::NG auth mechanism', function() {
describe('99 Lemonldap::NG auth mechanism', function() {
it('should allow logout', function() {
browser.driver.get('http://auth.example.com:' + process.env.TESTWEBSERVERPORT + '/?logout=1');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment