Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
504e892e
Commit
504e892e
authored
Jan 08, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP - Improve e2e tests (#1600)
parent
b372c147
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
e2e-tests/portal/01-menu.js
e2e-tests/portal/01-menu.js
+17
-1
No files found.
e2e-tests/portal/01-menu.js
View file @
504e892e
...
...
@@ -58,7 +58,6 @@ describe('01 Lemonldap::NG', function() {
browser
.
sleep
(
1000
);
expect
(
browser
.
driver
.
findElement
(
by
.
css
(
'
[trspan="areYouSure"]
'
)).
getText
()).
toEqual
(
'
Êtes-vous sûr ?
'
);
expect
(
browser
.
driver
.
findElement
(
by
.
css
(
'
[trspan="imSure"]
'
)).
getText
()).
toEqual
(
'
Je suis sûr
'
);
//browser.driver.findElement(by.xpath("//button[@type='button']")).click();
browser
.
driver
.
findElement
(
by
.
xpath
(
"
//button[@type='button']
"
)).
click
();
browser
.
sleep
(
1000
);
});
...
...
@@ -69,6 +68,23 @@ describe('01 Lemonldap::NG', function() {
links
[
0
].
click
();
browser
.
sleep
(
1000
);
});
browser
.
driver
.
findElements
(
by
.
xpath
(
'
//main/div/div/div/div/h4
'
)).
then
(
function
(
elems
)
{
expect
(
elems
.
length
).
toEqual
(
7
);
expect
(
elems
[
0
].
getText
()).
toEqual
(
'
Sample applications
'
);
expect
(
elems
[
1
].
getText
()).
toEqual
(
'
Administration
'
);
expect
(
elems
[
2
].
getText
()).
toEqual
(
'
Documentation
'
);
});
browser
.
driver
.
findElements
(
by
.
xpath
(
'
//main/div/div/div/div/div/div/div/a/div/div/div/h5
'
)).
then
(
function
(
elems
)
{
expect
(
elems
.
length
).
toEqual
(
8
);
expect
(
elems
[
0
].
getText
()).
toEqual
(
'
Application Test 1
'
);
expect
(
elems
[
1
].
getText
()).
toEqual
(
'
Application Test 2
'
);
expect
(
elems
[
2
].
getText
()).
toEqual
(
'
WebSSO Manager
'
);
expect
(
elems
[
3
].
getText
()).
toEqual
(
'
Notifications explorer
'
);
expect
(
elems
[
4
].
getText
()).
toEqual
(
'
Sessions explorer
'
);
expect
(
elems
[
5
].
getText
()).
toEqual
(
'
2FA Sessions explorer
'
);
expect
(
elems
[
6
].
getText
()).
toEqual
(
'
Local documentation
'
);
expect
(
elems
[
7
].
getText
()).
toEqual
(
'
Official Website
'
);
});
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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