Commit 47ffd3da authored by Christophe Maudoux's avatar Christophe Maudoux 🐛
Browse files

WIP - Improve e2e tests (#1600)

parent f6afc788
...@@ -10,12 +10,12 @@ describe('02 Lemonldap::NG Manger', function() { ...@@ -10,12 +10,12 @@ describe('02 Lemonldap::NG Manger', function() {
"fr": "Paramètres généraux" "fr": "Paramètres généraux"
}; };
// Login attempt // // Login attempt
browser.driver.get('http://auth.example.com:' + process.env.TESTWEBSERVERPORT + '/'); // browser.driver.get('http://auth.example.com:' + process.env.TESTWEBSERVERPORT + '/');
browser.driver.findElement(by.xpath("//input[@name='user']")).sendKeys('dwho'); // 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("//input[@name='password']")).sendKeys('dwho');
browser.driver.findElement(by.xpath("//button[@type='submit']")).click(); // browser.driver.findElement(by.xpath("//button[@type='submit']")).click();
browser.get('/'); // browser.get('/');
var els = element.all(by.css('[ng-click="getLanguage(lang)"]')); var els = element.all(by.css('[ng-click="getLanguage(lang)"]'));
expect(els.count()).toEqual(14); expect(els.count()).toEqual(14);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment