Skip to content
Snippets Groups Projects
Commit 00781185 authored by buczekp's avatar buczekp
Browse files

[LMS-1676] system test fix

SVN: 17388
parent 47b0bfcd
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ public final class FillSampleRegistrationForm extends AbstractDefaultTestCommand
private final List<PropertyField> properties;
private String parent;
private String parentsOrNull;
private String container;
......@@ -62,9 +62,9 @@ public final class FillSampleRegistrationForm extends AbstractDefaultTestCommand
this.properties = new ArrayList<PropertyField>();
}
public final FillSampleRegistrationForm parent(final String parentFieldValue)
public final FillSampleRegistrationForm parents(final String parents)
{
this.parent = parentFieldValue;
this.parentsOrNull = parents;
return this;
}
......@@ -96,12 +96,12 @@ public final class FillSampleRegistrationForm extends AbstractDefaultTestCommand
+ GroupSelectionWidget.SUFFIX + FORM_ID);
GWTUtils.setSelectedItem(groupSelector, ModelDataPropertyNames.CODE, groupNameOrNull);
if (StringUtils.isBlank(parent) == false)
if (StringUtils.isBlank(parentsOrNull) == false)
{
final SampleChooserField parentField =
(SampleChooserField) GWTTestUtil.getWidgetWithID(FORM_ID
+ GenericSampleRegistrationForm.ID_SUFFIX_PARENT);
parentField.setValue(parent);
+ ParentSamplesArea.ID_SUFFIX_PARENT_SAMPLES);
parentField.setValue(parentsOrNull);
}
if (StringUtils.isBlank(container) == false)
{
......
......@@ -122,7 +122,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase
final String sampleTypeCode = DILUTION_PLATE;
loginAndPreprareRegistration(sampleTypeCode);
remoteConsole.prepare(new FillSampleRegistrationForm("CISD", sampleCode)
.parent("MP1-MIXED"));
.parents("MP1-MIXED"));
remoteConsole.prepare(new InvokeActionMenu(TopMenu.ActionMenuKind.SAMPLE_MENU_BROWSE));
remoteConsole.prepare(new ListSamples("CISD", sampleTypeCode));
remoteConsole.prepare(new CheckSampleTable().expectedRow(new SampleRow(sampleCode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment