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
Show more breadcrumbs
Cassiopée
nghyd
Commits
10e9d334
Commit
10e9d334
authored
1 year ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test(e2e): predams: check results are displayed when dichotomy does not converge
refs
#614
parent
1a5d78e3
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/predam-log.e2e-spec.ts
+33
-0
33 additions, 0 deletions
e2e/predam-log.e2e-spec.ts
e2e/preferences.po.ts
+5
-0
5 additions, 0 deletions
e2e/preferences.po.ts
with
38 additions
and
0 deletions
e2e/predam-log.e2e-spec.ts
+
33
−
0
View file @
10e9d334
...
...
@@ -95,4 +95,37 @@ describe("predams - ", () => {
// check log messages absence
expect
(
await
calcPage
.
hasLog
()).
toBe
(
false
);
});
it
(
"
check submergence error and results if dichotomy did not converge
"
,
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
);
// modify iteration count,precision
await
prefPage
.
navigateTo
();
await
browser
.
pause
(
200
);
await
prefPage
.
setIterationCount
(
10
);
await
prefPage
.
setComputePrecision
(
1
e
-
15
);
// back to module
await
navBar
.
openNthCalculator
(
0
);
await
browser
.
pause
(
500
);
// calculate module
const
calcBtn
=
await
calcPage
.
getCalculateButton
();
await
calcBtn
.
click
();
await
browser
.
pause
(
300
);
// check log messages presence
expect
(
await
calcPage
.
hasLog
()).
toBe
(
true
);
expect
(
await
calcPage
.
nbLogEntries
()).
toBe
(
12
);
// check that results are not empty (dichotomy did not convergence but results should be displayed anyway)
const
hasResults
=
await
calcPage
.
hasResults
();
expect
(
hasResults
).
toBe
(
true
);
});
});
This diff is collapsed.
Click to expand it.
e2e/preferences.po.ts
+
5
−
0
View file @
10e9d334
...
...
@@ -84,4 +84,9 @@ export class PreferencesPage {
const
input
=
await
this
.
getInputFromName
(
"
nmi
"
);
await
input
.
setValue
(
n
.
toString
());
}
async
setComputePrecision
(
p
:
number
)
{
const
input
=
await
this
.
getInputFromName
(
"
cp
"
);
await
input
.
setValue
(
p
.
toString
());
}
}
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