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
429da3bc
Commit
429da3bc
authored
1 year ago
by
David Dorchies
Browse files
Options
Downloads
Patches
Plain Diff
tests(MacroRugoRemous): add e2e test for module generation from PAM
Refs
#609
parent
6f6f6229
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!252
release: version 4.18.0
,
!213
Resolve "Ajout du module courbe de remous d'une passe à macro-rugosité"
Pipeline
#158289
failed
1 year ago
Stage: install
Stage: build
Stage: clean-stale-branches
Stage: deploy-dev
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/calculator.po.ts
+6
-2
6 additions, 2 deletions
e2e/calculator.po.ts
e2e/macrorugo-remous.e2e-spec.ts
+27
-1
27 additions, 1 deletion
e2e/macrorugo-remous.e2e-spec.ts
with
33 additions
and
3 deletions
e2e/calculator.po.ts
+
6
−
2
View file @
429da3bc
...
...
@@ -142,11 +142,15 @@ export class CalculatorPage {
}
getCalculateButton
()
{
return
$
(
"
b
utton
#
trigger-calculate
"
);
return
this
.
getB
utton
(
"
trigger-calculate
"
);
}
getGeneratePabButton
()
{
return
$
(
"
button#generate-pab
"
);
return
this
.
getButton
(
"
generate-pab
"
);
}
getButton
(
id
:
string
)
{
return
$
(
`button#
${
id
}
`
);
}
getCheckedCalcModeButtons
()
{
...
...
This diff is collapsed.
Click to expand it.
e2e/macrorugo-remous.e2e-spec.ts
+
27
−
1
View file @
429da3bc
...
...
@@ -2,7 +2,7 @@ import { ListPage } from "./list.po";
import
{
PreferencesPage
}
from
"
./preferences.po
"
;
import
{
Navbar
}
from
"
./navbar.po
"
;
import
{
browser
,
$
,
$$
,
expect
}
from
'
@wdio/globals
'
import
{
isElementDisplayed
,
openCalculator
}
from
"
./util.po
"
;
import
{
isElementDisplayed
,
openCalculator
,
scrollPageToTop
}
from
"
./util.po
"
;
import
{
CalculatorPage
}
from
"
./calculator.po
"
;
import
{
newSession
}
from
"
./util.po
"
;
import
{
SideNav
}
from
"
./sidenav.po
"
;
...
...
@@ -82,4 +82,30 @@ xdescribe("MacroRugoRemous - ", () => {
const
errorMsg
=
await
$
(
"
div .select-error-message
"
);
expect
(
await
isElementDisplayed
(
errorMsg
)).
toBe
(
true
);
});
it
(
"
Generate from PAM
"
,
async
()
=>
{
// Open PAM with default values
await
openCalculator
(
11
,
navBar
,
listPage
);
// calculate PAM
const
calcButtonCl
=
await
calcPage
.
getCalculateButton
();
await
calcButtonCl
.
click
();
await
browser
.
pause
(
200
);
// make sure "Generate backwater curve" button is visible (it might be hidden behind navbar)
await
scrollPageToTop
();
// generate Macrorugo backwater curve
const
genButton
=
await
calcPage
.
getButton
(
"
generate-backwater-curve
"
);
await
genButton
.
click
();
await
browser
.
pause
(
1000
);
// calculate PAB
const
calcButtonMRCR
=
await
calcPage
.
getCalculateButton
();
await
calcButtonMRCR
.
click
();
await
browser
.
pause
(
500
);
// check that result is not empty
const
hasResults
=
await
calcPage
.
hasResults
();
expect
(
hasResults
).
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