lemonldap-ng/e2e-tests/e2e/00-auth.js
Xavier Guimard 537d5d2394 Move end-to-end test to root
New target also created in Makefile: `e2e_test`
NB: to launch it, install protractor. For example:

    npn install -g protractor && \
    webdriver-manager update
2015-12-07 20:56:39 +00:00

16 lines
530 B
JavaScript

'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('my app', function() {
describe('Auth mechanism', function() {
it('should want to authenticate', function() {
browser.driver.get('http://auth.example.com/');
browser.driver.findElement(by.xpath("//input[@name='user']")).sendKeys('dwho');
browser.driver.findElement(by.xpath("//input[@name='password']")).sendKeys('dwho');
browser.driver.findElement(by.xpath("//button[@type='submit']")).click();
});
});
});