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
c87f7d1f
Commit
c87f7d1f
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test(e2e): check that running a calculation in solver does not modify selected searched parameter
refs
#486
parent
5dfd1310
No related branches found
No related tags found
1 merge request
!148
Resolve "Solveur multimodule: le choix du paramètre recherché n'est pas maintenu à l'écran"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/solveur.e2e-spec.ts
+26
-1
26 additions, 1 deletion
e2e/solveur.e2e-spec.ts
with
26 additions
and
1 deletion
e2e/solveur.e2e-spec.ts
+
26
−
1
View file @
c87f7d1f
...
...
@@ -2,7 +2,7 @@ import { AppPage } from "./app.po";
import
{
ListPage
}
from
"
./list.po
"
;
import
{
CalculatorPage
}
from
"
./calculator.po
"
;
import
{
Navbar
}
from
"
./navbar.po
"
;
import
{
browser
}
from
"
protractor
"
;
import
{
browser
,
by
,
element
}
from
"
protractor
"
;
import
{
SideNav
}
from
"
./sidenav.po
"
;
import
{
PreferencesPage
}
from
"
./preferences.po
"
;
...
...
@@ -145,4 +145,29 @@ describe("Solveur - ", () => {
const
hasResultsClone2
=
await
calcPage
.
hasResults
();
expect
(
hasResultsClone2
).
toBe
(
true
);
});
it
(
"
channel flow example > solver > change searched parameter > run calculation
"
,
async
()
=>
{
// open "channel flow with hydraulic structures" example
const
examples
=
await
element
.
all
(
by
.
css
(
"
#examples-list .load-example
"
));
await
examples
[
1
].
click
();
await
browser
.
sleep
(
500
);
// select solver tab
await
navbar
.
clickCalculatorTab
(
3
);
await
browser
.
sleep
(
200
);
// modify searched parameter
const
sel
=
calcPage
.
getSelectById
(
"
select_searched_param
"
);
await
calcPage
.
changeSelectValue
(
sel
,
11
);
await
browser
.
sleep
(
100
);
const
selText
=
await
calcPage
.
getSelectValueText
(
sel
);
// run calculation
const
calcButton
=
calcPage
.
getCalculateButton
();
await
calcButton
.
click
();
await
browser
.
sleep
(
500
);
// check "search parameter" value has not changed
expect
(
await
calcPage
.
getSelectValueText
(
sel
)).
toEqual
(
selText
);
});
});
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