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
dfe689d8
Commit
dfe689d8
authored
May 05, 2022
by
Grand Francois
Browse files
test(e2e): check that an added structure has empty fields after the first structure is modified
refs
#536
parent
ec828fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
e2e/ouvrages-empty-fields.e2e-spec.ts
View file @
dfe689d8
...
...
@@ -163,4 +163,23 @@ describe("ngHyd - check that created/cloned structures have empty fields - ", ()
const
emptys
=
[
true
,
true
,
true
];
await
checkFields
(
inputIds
,
emptys
);
});
it
(
"
when a structure is modified (input) and then a structure is added
"
,
async
()
=>
{
await
setup
();
// fill
const
inp
=
calcPage
.
getInputById
(
"
0_ZDV
"
);
await
inp
.
clear
();
await
inp
.
sendKeys
(
"
1
"
);
// copy structure
const
addStruct
=
calcPage
.
getAddStructureButton
();
await
addStruct
.
click
();
await
browser
.
sleep
(
200
);
// check empty fields
const
inputIds
=
[
"
1_ZDV
"
,
"
1_L
"
,
"
1_W
"
,
"
1_CdGR
"
];
const
emptys
=
[
true
,
true
,
true
,
false
];
await
checkFields
(
inputIds
,
emptys
);
});
});
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