WIP - Improve e2e tests (#1600)

This commit is contained in:
Christophe Maudoux 2019-01-26 18:41:19 +01:00
parent 47ffd3dab6
commit 950dd0a9ad
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ describe('02 Lemonldap::NG Manger', function() {
it('Should display Menu -> Links', function() {
element(by.id("mainlangmenu")).click();
browser.sleep(5000);
browser.sleep(500);
var links = element.all(by.repeater('menulink in menulinks'));
expect(links.count()).toEqual(4);
expect(links.get(0).getText()).toEqual('Retour au portail');

View File

@ -17,6 +17,7 @@ describe('40 Lemonldap::NG Sessions explorer', function() {
it('Should display at least my session', function() {
browser.get('/sessions.html');
expect(element.all(by.xpath("//a[@href='sessions.html']")).first().getCssValue("color")).toEqual('rgba(157, 157, 157, 1)');
var t = element.all(by.repeater('node in data track by node.id'));
expect(t.count()).toBeGreaterThan(0);
element(by.id("a-d")).click();