Commit 29744131 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

WIP - Fix Protractor e2e tests (#1600)

parent 5a74c1f2
Pipeline #3783 passed with stages
in 11 minutes and 11 seconds
......@@ -12,7 +12,7 @@ describe('02 Lemonldap::NG Manager', function() {
"fr": "Paramètres généraux"
};
var els = element.all(by.css('[ng-click="getLanguage(lang)"]'));
expect(els.count()).toEqual(8);
expect(els.count()).toEqual(14);
els.each(function(el) {
el.isDisplayed().then(function(isVisible) {
if (isVisible) {
......
......@@ -9,6 +9,7 @@ describe('08 Lemonldap::NG Manager', function() {
it('should be able to add reload urls', function() {
browser.get('/#/confs/latest');
element(by.id('a-generalParameters')).click();
element(by.id('t-reloadParams')).click();
element(by.id('t-reloadUrls')).click();
element(by.css('.glyphicon-plus-sign')).click();
element(by.id('a-reloadUrls')).click();
......
......@@ -5,14 +5,13 @@
describe('35 Lemonldap::NG Manager', function() {
it('should be able to restore an old configuration', function() {
browser.get('/#/confs/1');
browser.get('/#!/confs/1');
element(by.id('save')).click();
element(by.id('longtextinput')).sendKeys('Restore conf 1');
element(by.id('saveok')).click();
browser.sleep(500);
element(by.id('messageok')).click();
browser.sleep(500);
element(by.id('forcesave')).click();
element(by.id('save')).click();
element(by.id('longtextinput')).sendKeys('Force to restore conf 1');
element(by.id('saveok')).click();
element(by.id('messageok')).click();
......
......@@ -7,7 +7,7 @@ describe('36 Lemonldap::NG Manager', function() {
describe('Diff interface', function() {
it('should find key changed', function() {
browser.get('/diff.html#6/7');
browser.get('/diff.html#!/6/7');
element(by.id('t-generalParameters')).click();
element(by.id('t-advancedParams')).click();
element(by.id('t-security')).click();
......
......@@ -5,7 +5,7 @@ describe('40 Lemonldap::NG Manager', function() {
it('should display other modules', function() {
browser.get('/');
var links = element.all(by.repeater('l in links'));
expect(links.count()).toEqual(3);
expect(links.count()).toEqual(4);
element(by.xpath("//a[@href='sessions.html']")).click();
});
......
......@@ -94,7 +94,7 @@
<th ng-if="node.td!='1' && node.td!='2'">{{translate(node.title)}}</th>
<td class="data-{{node.epoch}}" ng-if="node.td>='1'">{{node.title}}</td>
<th ng-if="node.title=='type' || node.title=='rp'">{{translate(node.value)}}</th>
<td class="col-md-4 data-{{node.epoch}}" ng-if="node.title!='type' && node.title!='rp'">{{node.value}}</td>
<td id="v-{{node.title}}" class="col-md-4 data-{{node.epoch}}" ng-if="node.title!='type' && node.title!='rp'">{{node.value}}</td>
<th ng-if="node.title=='type' || node.title=='rp'">{{translate(node.epoch)}}</th>
<td class="col-md-4 data-{{node.epoch}}" ng-if="node.epoch > 1500000000">{{localeDate(node.epoch)}}</td>
<td class="data-{{node.epoch}}">
......
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