Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
47ffd3da
Commit
47ffd3da
authored
Jan 26, 2019
by
Christophe Maudoux
Browse files
WIP - Improve e2e tests (#1600)
parent
f6afc788
Changes
1
Hide whitespace changes
Inline
Side-by-side
e2e-tests/manager/02-menu.js
View file @
47ffd3da
...
...
@@ -10,12 +10,12 @@ describe('02 Lemonldap::NG Manger', function() {
"
fr
"
:
"
Paramètres généraux
"
};
// Login attempt
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='password']
"
)).
sendKeys
(
'
dwho
'
);
browser
.
driver
.
findElement
(
by
.
xpath
(
"
//button[@type='submit']
"
)).
click
();
browser
.
get
(
'
/
'
);
//
//
Login attempt
//
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='password']")).sendKeys('dwho');
//
browser.driver.findElement(by.xpath("//button[@type='submit']")).click();
//
browser.get('/');
var
els
=
element
.
all
(
by
.
css
(
'
[ng-click="getLanguage(lang)"]
'
));
expect
(
els
.
count
()).
toEqual
(
14
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment