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
19dc09ea
Commit
19dc09ea
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test(e2e): MacroRugoRemous: check select empty message when no PAM exists in the session
refs
#609
parent
c9d6cab6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/macrorugo-remous.e2e-spec.ts
+58
-0
58 additions, 0 deletions
e2e/macrorugo-remous.e2e-spec.ts
with
58 additions
and
0 deletions
e2e/macrorugo-remous.e2e-spec.ts
0 → 100644
+
58
−
0
View file @
19dc09ea
import
{
ListPage
}
from
"
./list.po
"
;
import
{
browser
,
by
,
element
}
from
"
protractor
"
;
import
{
PreferencesPage
}
from
"
./preferences.po
"
;
import
{
Navbar
}
from
"
./navbar.po
"
;
describe
(
"
MacroRugoRemous -
"
,
()
=>
{
let
prefPage
:
PreferencesPage
;
let
listPage
:
ListPage
;
let
navBar
:
Navbar
;
beforeAll
(()
=>
{
prefPage
=
new
PreferencesPage
();
listPage
=
new
ListPage
();
navBar
=
new
Navbar
();
// browser.manage().window().setPosition(2000, 30);
});
beforeEach
(
async
()
=>
{
// disable evil option "empty fields on module creation"
await
prefPage
.
navigateTo
();
await
browser
.
sleep
(
200
);
await
prefPage
.
disableEvilEmptyFields
();
await
browser
.
sleep
(
200
);
});
it
(
"
check select empty message is present when no PAM is in the session
"
,
async
()
=>
{
// start page
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
sleep
(
200
);
// MacroRugoRemous calculator
await
listPage
.
clickMenuEntryForCalcType
(
37
);
browser
.
sleep
(
200
);
const
emptyMsg
=
element
(
by
.
css
(
"
div .message-when-empty
"
));
expect
(
await
emptyMsg
.
isPresent
()).
toBe
(
true
);
});
it
(
"
check select empty message is not present when a PAM exists in the session
"
,
async
()
=>
{
// start page
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
sleep
(
200
);
// PAM calculator
await
listPage
.
clickMenuEntryForCalcType
(
11
);
browser
.
sleep
(
200
);
await
navBar
.
clickNewCalculatorButton
();
await
browser
.
sleep
(
200
);
// MacroRugoRemous calculator
await
listPage
.
clickMenuEntryForCalcType
(
37
);
browser
.
sleep
(
200
);
const
emptyMsg
=
element
(
by
.
css
(
"
div .message-when-empty
"
));
expect
(
await
emptyMsg
.
isPresent
()).
toBe
(
false
);
});
});
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