WIP - Improve e2e tests (#1600)

environments/ppa-mbqj77/deployments/671^2
Christophe Maudoux 7 years ago
parent 47ffd3dab6
commit 950dd0a9ad
  1. 2
      e2e-tests/manager/02-menu.js
  2. 1
      e2e-tests/manager/40-sessions.js

@ -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');

@ -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();

Loading…
Cancel
Save