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
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
Cassiopée
nghyd
Commits
93d413a9
Commit
93d413a9
authored
1 year ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
refactor(e2e): migrate commit
c93a6e1f
(
#609
)
refs
#618
parent
cbcc1579
No related branches found
No related tags found
2 merge requests
!225
Release v4.17.0
,
!221
Resolve "Migration des tests e2e vers WebDriverIO"
Pipeline
#140378
failed
1 year ago
Stage: install
Stage: test
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/macrorugo-remous.e2e-spec.ts
+48
-0
48 additions, 0 deletions
e2e/macrorugo-remous.e2e-spec.ts
with
48 additions
and
0 deletions
e2e/macrorugo-remous.e2e-spec.ts
+
48
−
0
View file @
93d413a9
...
...
@@ -3,17 +3,20 @@ import { PreferencesPage } from "./preferences.po";
import
{
Navbar
}
from
"
./navbar.po
"
;
import
{
browser
,
$
,
$$
,
expect
}
from
'
@wdio/globals
'
import
{
isElementDisplayed
}
from
"
./util.po
"
;
import
{
CalculatorPage
}
from
"
./calculator.po
"
;
//TODO à réactiver après fusion de #618 dans devel
xdescribe
(
"
MacroRugoRemous -
"
,
()
=>
{
let
prefPage
:
PreferencesPage
;
let
listPage
:
ListPage
;
let
navBar
:
Navbar
;
let
calcPage
:
CalculatorPage
;
beforeAll
(()
=>
{
prefPage
=
new
PreferencesPage
();
listPage
=
new
ListPage
();
navBar
=
new
Navbar
();
calcPage
=
new
CalculatorPage
();
});
beforeEach
(
async
()
=>
{
...
...
@@ -57,4 +60,49 @@ xdescribe("MacroRugoRemous - ", () => {
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
()
=>
{
// start page
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
pause
(
200
);
// PAM calculator
await
listPage
.
clickMenuEntryForCalcType
(
11
);
browser
.
pause
(
200
);
// MacroRugoRemous calculator
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
pause
(
200
);
await
listPage
.
clickMenuEntryForCalcType
(
37
);
browser
.
pause
(
200
);
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
);
// PAM calculator
await
listPage
.
clickMenuEntryForCalcType
(
11
);
browser
.
pause
(
200
);
// set ZF1 to variated mode
const
zf1
=
await
calcPage
.
getInputById
(
"
ZF1
"
);
await
calcPage
.
setParamMode
(
zf1
,
"
var
"
);
await
browser
.
pause
(
200
);
// MacroRugoRemous calculator
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
pause
(
200
);
await
listPage
.
clickMenuEntryForCalcType
(
37
);
browser
.
pause
(
200
);
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