Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cassiopee
nghyd
Commits
f2bcc865
Commit
f2bcc865
authored
May 05, 2022
by
Grand Francois
Browse files
test(e2e): check results are not duplicated in baffle fishway: setup calculator
refs
#535
parent
ec828fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
e2e/duplicate-results.e2e-spec.ts
0 → 100644
View file @
f2bcc865
import
{
browser
}
from
"
protractor
"
;
import
{
PreferencesPage
}
from
"
./preferences.po
"
import
{
Navbar
}
from
"
./navbar.po
"
;
import
{
ListPage
}
from
"
./list.po
"
;
import
{
CalculatorPage
}
from
"
./calculator.po
"
;
describe
(
"
ngHyd − check that results are not duplicated
"
,
()
=>
{
let
prefPage
:
PreferencesPage
;
let
navBar
:
Navbar
;
let
listPage
:
ListPage
;
let
calcPage
:
CalculatorPage
;
beforeEach
(
async
()
=>
{
prefPage
=
new
PreferencesPage
();
listPage
=
new
ListPage
();
navBar
=
new
Navbar
();
calcPage
=
new
CalculatorPage
();
// disable evil option "empty fields on module creation"
await
prefPage
.
navigateTo
();
await
browser
.
sleep
(
200
);
await
prefPage
.
disableEvilEmptyFields
();
await
browser
.
sleep
(
200
);
});
it
(
"
in 'baffle fishway: setup' calculator
"
,
async
()
=>
{
// open baffle fishway setup calculator
await
navBar
.
clickNewCalculatorButton
();
await
listPage
.
clickMenuEntryForCalcType
(
28
);
await
browser
.
sleep
(
200
);
// run calculation
const
calcButton
=
calcPage
.
getCalculateButton
();
await
calcButton
.
click
();
// check result count
const
fixRows
=
calcPage
.
getAllFixedResultsRows
();
const
nbRows
=
await
fixRows
.
count
();
console
.
log
(
nbRows
);
expect
(
nbRows
).
toBe
(
24
);
// boundaries are included
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment