Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
Cassiopée
nghyd
Commits
68060547
Commit
68060547
authored
1 year ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test(e2e): check log messages in predams example
refs
#614
parent
b2dfb63e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!225
Release v4.17.0
,
!216
Resolve "Structure: Ajouter une erreur sur l'ennoiement"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/predam-log.e2e-spec.ts
+37
-2
37 additions, 2 deletions
e2e/predam-log.e2e-spec.ts
with
37 additions
and
2 deletions
e2e/predam-log.e2e-spec.ts
+
37
−
2
View file @
68060547
...
...
@@ -3,18 +3,22 @@ import { ListPage } from "./list.po";
import
{
Navbar
}
from
"
./navbar.po
"
;
import
{
PreferencesPage
}
from
"
./preferences.po
"
import
{
browser
,
$
,
$$
,
expect
}
from
'
@wdio/globals
'
import
{
changeSelectValue
,
scrollToElement
}
from
"
./util.po
"
;
import
{
AppPage
}
from
"
./app.po
"
;
describe
(
"
check that low iteration count leads to log messages
"
,
()
=>
{
describe
(
"
predams -
"
,
()
=>
{
let
listPage
:
ListPage
;
let
prefPage
:
PreferencesPage
;
let
navBar
:
Navbar
;
let
calcPage
:
CalculatorPage
;
let
startPage
:
AppPage
;
beforeAll
(()
=>
{
prefPage
=
new
PreferencesPage
();
listPage
=
new
ListPage
();
navBar
=
new
Navbar
();
calcPage
=
new
CalculatorPage
();
startPage
=
new
AppPage
();
});
beforeEach
(
async
()
=>
{
...
...
@@ -25,7 +29,7 @@ describe("check that low iteration count leads to log messages", () => {
await
browser
.
pause
(
100
);
});
it
(
""
,
async
()
=>
{
it
(
"
check that low iteration count leads to log messages
"
,
async
()
=>
{
// set low iteration count
await
prefPage
.
setIterationCount
(
5
);
...
...
@@ -42,4 +46,35 @@ describe("check that low iteration count leads to log messages", () => {
// check log messages presence
expect
(
await
calcPage
.
hasLog
()).
toBe
(
true
);
});
it
(
"
check log messages in predams example
"
,
async
()
=>
{
await
startPage
.
navigateTo
();
await
browser
.
pause
(
200
);
// open predams example
const
examples
=
await
$
$
(
"
#examples-list .load-example
"
);
await
examples
[
6
].
click
();
await
browser
.
pause
(
500
);
// click "Amont-B2"
const
nodes
=
await
$
$
(
"
g.nodes > g
"
);
const
node
=
nodes
[
9
];
await
scrollToElement
(
node
);
await
browser
.
pause
(
100
);
await
node
.
click
();
await
browser
.
pause
(
200
);
// change discharge law to Larinier
const
sel
=
await
calcPage
.
getSelectById
(
"
select_loidebit
"
);
await
changeSelectValue
(
sel
,
3
);
await
browser
.
pause
(
100
);
// calculate module
const
calcBtn
=
await
calcPage
.
getCalculateButton
();
await
calcBtn
.
click
();
await
browser
.
pause
(
300
);
// check log messages presence
expect
(
await
calcPage
.
hasLog
()).
toBe
(
true
);
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment