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
3b982a50
Commit
3b982a50
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test(e2e): duplicate module, link parameter, close 1st module, duplicate
refs
#571
parent
e45bdf02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!177
Resolve "Un paramètre lié ne change pas d'état après la suppression du module cible"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/link-to-deleted-module.e2e-spec.ts
+41
-0
41 additions, 0 deletions
e2e/link-to-deleted-module.e2e-spec.ts
with
41 additions
and
0 deletions
e2e/link-to-deleted-module.e2e-spec.ts
+
41
−
0
View file @
3b982a50
import
{
browser
,
by
,
element
}
from
"
protractor
"
;
import
{
CalculatorPage
}
from
"
./calculator.po
"
;
import
{
ListPage
}
from
"
./list.po
"
;
import
{
Navbar
}
from
"
./navbar.po
"
;
import
{
PreferencesPage
}
from
"
./preferences.po
"
;
...
...
@@ -7,11 +8,13 @@ describe("linked parameter - ", () => {
let
calcPage
:
CalculatorPage
;
let
prefPage
:
PreferencesPage
;
let
navBar
:
Navbar
;
let
listPage
:
ListPage
;
beforeAll
(()
=>
{
calcPage
=
new
CalculatorPage
();
prefPage
=
new
PreferencesPage
();
navBar
=
new
Navbar
();
listPage
=
new
ListPage
();
});
beforeEach
(
async
()
=>
{
...
...
@@ -52,4 +55,42 @@ describe("linked parameter - ", () => {
const
inpZ2
=
calcPage
.
getInputById
(
"
Z2
"
);
expect
(
await
calcPage
.
inputIsInFixedMode
(
inpZ2
)).
toBe
(
true
);
});
it
(
"
delete linked module and duplicate remaining one
"
,
async
()
=>
{
// open "fish ladder: fall" calculator
await
listPage
.
clickMenuEntryForCalcType
(
12
);
await
browser
.
sleep
(
200
);
// clone calculator
await
calcPage
.
clickCloneCalcButton
();
await
browser
.
sleep
(
200
);
// set DH in link mode
let
inpDH
=
calcPage
.
getInputById
(
"
DH
"
);
await
calcPage
.
setParamMode
(
inpDH
,
"
link
"
);
await
browser
.
sleep
(
200
);
// close 1st calculator
await
navBar
.
middleClickCalculatorTab
(
0
);
await
browser
.
sleep
(
200
);
// check DH input is in "fixed" state in remaining calculator (not the aim of this test)
inpDH
=
calcPage
.
getInputById
(
"
DH
"
);
expect
(
await
calcPage
.
inputIsInFixedMode
(
inpDH
)).
toBe
(
true
);
// set DH to calculated mode
await
calcPage
.
setParamMode
(
inpDH
,
"
cal
"
);
// clone calculator
await
calcPage
.
clickCloneCalcButton
();
await
browser
.
sleep
(
200
);
// select 1st tab
await
navBar
.
clickCalculatorTab
(
0
);
await
browser
.
sleep
(
500
);
// check DH input is in "calc" mode
inpDH
=
calcPage
.
getInputById
(
"
DH
"
);
expect
(
await
calcPage
.
inputIsInCalculatedMode
(
inpDH
)).
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