| 1 |
'use strict'; |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
describe('99 Lemonldap::NG auth mechanism', function() { |
| 6 |
it('should allow logout', function() { |
| 7 |
browser.driver.findElements(by.xpath('//li/a/span/img')).then(function(links) { |
| 8 |
expect(links.length).toEqual(4); |
| 9 |
links[3].click(); |
| 10 |
browser.sleep(1000); |
| 11 |
expect(browser.driver.findElement(by.css('[trspan="areYouSure"]')).getText()).toEqual('Êtes-vous sûr ?'); |
| 12 |
browser.driver.findElement(by.css('[trspan="imSure"]')).click(); |
| 13 |
expect(browser.driver.findElement(by.css('[trmsg="47"]')).getText()).toEqual('Vous avez été déconnecté'); |
| 14 |
browser.sleep(500); |
| 15 |
browser.driver.findElement(by.css('[trspan="goToPortal"]')).click(); |
| 16 |
expect(browser.driver.findElement(by.css('[trmsg="9"]')).getText()).toEqual('Veuillez vous authentifier'); |
| 17 |
}); |
| 18 |
}); |
| 19 |
}); |