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
13153718
Commit
13153718
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test(e2e): check section select default value from calculator configuration is honored
refs
#483
parent
285aad67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!225
Release v4.17.0
,
!176
Resolve "Fusionner les "select" avec "source" et les "select_custom""
Pipeline
#139936
passed
2 years ago
Stage: install
Stage: build
Stage: clean-stale-branches
Stage: deploy-dev
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/select-default-value.e2e-spec.ts
+15
-2
15 additions, 2 deletions
e2e/select-default-value.e2e-spec.ts
with
15 additions
and
2 deletions
e2e/select-default-value.e2e-spec.ts
+
15
−
2
View file @
13153718
...
...
@@ -35,8 +35,21 @@ describe("check the select default value - ", () => {
// in the calculator configuration file, the default resolution method is 'Trapezes'.
// let's check this...
const
sel
_section
=
calcPage
.
getSelectById
(
"
select_resolution
"
);
const
val
=
await
calcPage
.
getSelectValueText
(
sel
_section
);
const
sel
=
calcPage
.
getSelectById
(
"
select_resolution
"
);
const
val
=
await
calcPage
.
getSelectValueText
(
sel
);
expect
(
val
).
toBe
(
"
Intégration par trapèzes
"
);
});
it
(
"
in the 'up/downstream elevations of a reach' calculator
"
,
async
()
=>
{
// open "up/downstream elevations of a reach" calculator
await
navBar
.
clickNewCalculatorButton
();
await
listPage
.
clickMenuEntryForCalcType
(
21
);
await
browser
.
sleep
(
200
);
// in the calculator configuration file, the default section method is 'Rectangulaire'.
// let's check this...
const
sel
=
calcPage
.
getSelectById
(
"
select_section
"
);
const
val
=
await
calcPage
.
getSelectValueText
(
sel
);
expect
(
val
).
toBe
(
"
Rectangulaire
"
);
});
});
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