WIP - Improve e2e tests (#1600)
This commit is contained in:
parent
47ffd3dab6
commit
950dd0a9ad
|
@ -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…
Reference in New Issue