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
0e5db8fd
Commit
0e5db8fd
authored
1 year ago
by
François Grand
Committed by
AUBRY JEAN-PASCAL
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(e2e): MacroRugoRemous test failure
refs
#609
parent
80cbbda1
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é"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/macrorugo-remous.e2e-spec.ts
+26
-25
26 additions, 25 deletions
e2e/macrorugo-remous.e2e-spec.ts
with
26 additions
and
25 deletions
e2e/macrorugo-remous.e2e-spec.ts
+
26
−
25
View file @
0e5db8fd
...
...
@@ -4,19 +4,23 @@ import { Navbar } from "./navbar.po";
import
{
browser
,
$
,
$$
,
expect
}
from
'
@wdio/globals
'
import
{
isElementDisplayed
,
openCalculator
}
from
"
./util.po
"
;
import
{
CalculatorPage
}
from
"
./calculator.po
"
;
import
{
newSession
}
from
"
./util.po
"
;
import
{
SideNav
}
from
"
./sidenav.po
"
;
//TODO à réactiver après fusion de nghyd#609 jalhyd#325 dans devel
xdescribe
(
"
MacroRugoRemous -
"
,
()
=>
{
let
prefPage
:
PreferencesPage
;
let
listPage
:
ListPage
;
let
navBar
:
Navbar
;
let
calcPage
:
CalculatorPage
;
let
prefPage
:
PreferencesPage
;
let
listPage
:
ListPage
;
let
navBar
:
Navbar
;
let
calcPage
:
CalculatorPage
;
let
sideNav
:
SideNav
;
beforeAll
(()
=>
{
prefPage
=
new
PreferencesPage
();
listPage
=
new
ListPage
();
navBar
=
new
Navbar
();
calcPage
=
new
CalculatorPage
();
sideNav
=
new
SideNav
();
});
beforeEach
(
async
()
=>
{
...
...
@@ -27,56 +31,53 @@ xdescribe("MacroRugoRemous - ", () => {
await
browser
.
pause
(
200
);
});
it
(
"
check select empty message is present when no PAM is in the session
"
,
async
()
=>
{
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
it
(
"
check select empty message is present when no PAM is in the session
"
,
async
()
=>
{
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
// const emptyMsg = element(by.css("div .message-when-empty"));
const
emptyMsg
=
await
$
(
"
div .message-when-empty
"
);
expect
(
await
isElementDisplayed
(
emptyMsg
)).
toBe
(
true
);
});
it
(
"
check select empty message is not present when a PAM exists in the session
"
,
async
()
=>
{
// PAM calculator
await
openCalculator
(
11
,
navBar
,
listPage
);
it
(
"
check select empty message is not present when a PAM exists in the session
"
,
async
()
=>
{
// PAM calculator
await
openCalculator
(
11
,
navBar
,
listPage
);
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
pause
(
200
);
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
const
emptyMsg
=
$
(
"
div .message-when-empty
"
);
expect
(
await
isElementDisplayed
(
emptyMsg
)).
toBe
(
false
);
});
it
(
"
check select error message when target PAM has no variated parameter
"
,
async
()
=>
{
// PAM calculator
await
openCalculator
(
11
,
navBar
,
listPage
);
it
(
"
check select error message when target PAM has no variated parameter
"
,
async
()
=>
{
// PAM calculator
await
openCalculator
(
11
,
navBar
,
listPage
);
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
const
errorMsg
=
await
$
(
"
div .select-error-message
"
);
expect
(
await
isElementDisplayed
(
errorMsg
)).
toBe
(
false
);
});
it
(
"
check select error message when target PAM has a variated parameter
"
,
async
()
=>
{
// start page
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
pause
(
200
);
await
newSession
(
navBar
,
sideNav
);
// PAM calculator
await
listPage
.
clickMenuEntryForCalcType
(
11
);
browser
.
pause
(
200
);
// open PAM calculator
await
openCalculator
(
11
,
navBar
,
listPage
);
// set ZF1 to variated mode
const
zf1
=
await
calcPage
.
getInputById
(
"
ZF1
"
);
await
calcPage
.
setParamMode
(
zf1
,
"
var
"
);
await
browser
.
pause
(
200
);
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
// MacroRugoRemous calculator
await
openCalculator
(
37
,
navBar
,
listPage
);
const
errorMsg
=
await
$
(
"
div .select-error-message
"
);
expect
(
await
isElementDisplayed
(
errorMsg
)).
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