public void testFrameOnAccessHidesIteratorList() throws Exception {
Frame home = assertHasFrame(root, "Home");
InputForm containerForm = assertHasInputForm(home, "Select Contact");
IteratorList list = assertHasIteratorList(containerForm, "Select Contact");
InputTextField input = assertHasInputTextField(containerForm, "Search by name");
Event onAccess = home.getOnAccess();
assertGenerated(onAccess);
{
Operation hide = assertHasBuiltinOperation(list, "hide");
assertGenerated(hide);
ECARule run = assertHasRunAction(root, onAccess, hide);
assertGenerated(run);
// only if the input is empty
Function empty = input.getEmpty();
assertGenerated(empty);
assertGenerated(assertHasSimpleCondition(root, empty, run));
}
{
Operation hide = assertHasBuiltinOperation(list, "show");
assertGenerated(hide);
ECARule run = assertHasRunAction(root, onAccess, hide);
assertGenerated(run);
// only if the input is not empty
Function empty = input.getNotEmpty();
assertGenerated(empty);
assertGenerated(assertHasSimpleCondition(root, empty, run));
}