Skip to content
Snippets Groups Projects
Commit 56c038d3 authored by tpylak's avatar tpylak
Browse files

LMS-1020 minor: fix system tests

SVN: 11944
parent 6da40742
No related merge requests found
...@@ -43,7 +43,7 @@ public class ExperimentBrowserTest extends AbstractGWTTestCase ...@@ -43,7 +43,7 @@ public class ExperimentBrowserTest extends AbstractGWTTestCase
table.expectedRow(new ExperimentRow("EXP-TEST-1", "COMPOUND_HCS").withUserPropertyCell( table.expectedRow(new ExperimentRow("EXP-TEST-1", "COMPOUND_HCS").withUserPropertyCell(
"COMMENT", "cmnt")); // 'COMMENT' is assigned only to 'COMPOUND_HCS' experiment type "COMMENT", "cmnt")); // 'COMMENT' is assigned only to 'COMPOUND_HCS' experiment type
table.expectedRow(new ExperimentRow("EXP-TEST-2", "SIRNA_HCS").withUserPropertyCell( table.expectedRow(new ExperimentRow("EXP-TEST-2", "SIRNA_HCS").withUserPropertyCell(
"GENDER", "[FEMALE]")); // 'GENDER' is assigned only to 'SIRNA_HCS' experiment type "GENDER", "FEMALE")); // 'GENDER' is assigned only to 'SIRNA_HCS' experiment type
table.expectedColumnsNumber(15); table.expectedColumnsNumber(15);
remoteConsole.prepare(table.expectedSize(5)); remoteConsole.prepare(table.expectedSize(5));
......
...@@ -36,7 +36,7 @@ public class MaterialBrowserTest extends AbstractGWTTestCase ...@@ -36,7 +36,7 @@ public class MaterialBrowserTest extends AbstractGWTTestCase
remoteConsole.prepare(new ListMaterials("BACTERIUM")); remoteConsole.prepare(new ListMaterials("BACTERIUM"));
CheckMaterialTable table = new CheckMaterialTable(); CheckMaterialTable table = new CheckMaterialTable();
table.expectedRow(new MaterialRow("BACTERIUM-X").withUserPropertyCell("ORGANISM", "[FLY]")); table.expectedRow(new MaterialRow("BACTERIUM-X").withUserPropertyCell("ORGANISM", "FLY"));
table.expectedRow(new MaterialRow("BACTERIUM-Y")); table.expectedRow(new MaterialRow("BACTERIUM-Y"));
table.expectedRow(new MaterialRow("BACTERIUM1")); table.expectedRow(new MaterialRow("BACTERIUM1"));
table.expectedRow(new MaterialRow("BACTERIUM2")); table.expectedRow(new MaterialRow("BACTERIUM2"));
......
...@@ -42,6 +42,8 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.testframework.Row; ...@@ -42,6 +42,8 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.testframework.Row;
public class SampleBrowserTest extends AbstractGWTTestCase public class SampleBrowserTest extends AbstractGWTTestCase
{ {
private static final String DEFAULT_PLATE_GEOMETRY_VALUE = "384_WELLS_16X24";
public final void testChangeColumnSettings() public final void testChangeColumnSettings()
{ {
loginAndGotoListSamplesTab(); loginAndGotoListSamplesTab();
...@@ -80,10 +82,10 @@ public class SampleBrowserTest extends AbstractGWTTestCase ...@@ -80,10 +82,10 @@ public class SampleBrowserTest extends AbstractGWTTestCase
// 'ORGANISM' is assigned only to 'CELL_PLATE' sample type // 'ORGANISM' is assigned only to 'CELL_PLATE' sample type
table.expectedRow(new SampleRow("CP-TEST-1", "CELL_PLATE").identifier("CISD", "CISD") table.expectedRow(new SampleRow("CP-TEST-1", "CELL_PLATE").identifier("CISD", "CISD")
.withUserPropertyCell("ORGANISM", "[HUMAN]")); .withUserPropertyCell("ORGANISM", "HUMAN"));
// 'PLATE_GEOMETRY' is assigned only to 'CONTROL_LAYOUT' and 'MASTER PLATE' sample types // 'PLATE_GEOMETRY' is assigned only to 'CONTROL_LAYOUT' and 'MASTER PLATE' sample types
table.expectedRow(new SampleRow("C1", "CONTROL_LAYOUT").identifier("CISD", "CISD") table.expectedRow(new SampleRow("C1", "CONTROL_LAYOUT").identifier("CISD", "CISD")
.withInternalPropertyCell("PLATE_GEOMETRY", "[384_WELLS_16X24]")); .withInternalPropertyCell("PLATE_GEOMETRY", DEFAULT_PLATE_GEOMETRY_VALUE));
table.expectedColumnsNumber(19); table.expectedColumnsNumber(19);
remoteConsole.prepare(table.expectedSize(40)); remoteConsole.prepare(table.expectedSize(40));
...@@ -99,9 +101,9 @@ public class SampleBrowserTest extends AbstractGWTTestCase ...@@ -99,9 +101,9 @@ public class SampleBrowserTest extends AbstractGWTTestCase
table.expectedColumnHidden(CommonSampleColDefKind.CODE.name(), false); table.expectedColumnHidden(CommonSampleColDefKind.CODE.name(), false);
table.expectedColumnWidth(CommonSampleColDefKind.REGISTRATOR.name(), DEFAULT_COLUMN_WIDTH); table.expectedColumnWidth(CommonSampleColDefKind.REGISTRATOR.name(), DEFAULT_COLUMN_WIDTH);
table.expectedRow(new SampleRow("MP001-1").identifier("CISD", "CISD").invalid() table.expectedRow(new SampleRow("MP001-1").identifier("CISD", "CISD").invalid()
.noExperiment().withInternalPropertyCell("PLATE_GEOMETRY", "[384_WELLS_16X24]")); .noExperiment().withInternalPropertyCell("PLATE_GEOMETRY", DEFAULT_PLATE_GEOMETRY_VALUE));
table.expectedRow(new SampleRow("MP002-1").identifier("CISD", "CISD").valid() table.expectedRow(new SampleRow("MP002-1").identifier("CISD", "CISD").valid()
.noExperiment().withInternalPropertyCell("PLATE_GEOMETRY", "[384_WELLS_16X24]")); .noExperiment().withInternalPropertyCell("PLATE_GEOMETRY", DEFAULT_PLATE_GEOMETRY_VALUE));
remoteConsole.prepare(table.expectedSize(5)); remoteConsole.prepare(table.expectedSize(5));
launchTest(20000); launchTest(20000);
...@@ -129,7 +131,7 @@ public class SampleBrowserTest extends AbstractGWTTestCase ...@@ -129,7 +131,7 @@ public class SampleBrowserTest extends AbstractGWTTestCase
CheckSampleTable table = new CheckSampleTable(); CheckSampleTable table = new CheckSampleTable();
Row expectedRow = Row expectedRow =
new SampleRow("MP").identifier("CISD").valid().noExperiment() new SampleRow("MP").identifier("CISD").valid().noExperiment()
.withInternalPropertyCell("PLATE_GEOMETRY", "[384_WELLS_16X24]"); .withInternalPropertyCell("PLATE_GEOMETRY", DEFAULT_PLATE_GEOMETRY_VALUE);
table.expectedRow(expectedRow); table.expectedRow(expectedRow);
remoteConsole.prepare(table.expectedSize(1)); remoteConsole.prepare(table.expectedSize(1));
......
...@@ -67,7 +67,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase ...@@ -67,7 +67,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase
loginAndPreprareRegistration(sampleTypeCode); loginAndPreprareRegistration(sampleTypeCode);
remoteConsole.prepare(new FillSampleRegistrationForm("CISD", GROUP_CL, true) remoteConsole.prepare(new FillSampleRegistrationForm("CISD", GROUP_CL, true)
.addProperty(new PropertyField(GenericSampleRegistrationForm.ID + "plate-geometry", .addProperty(new PropertyField(GenericSampleRegistrationForm.ID + "plate-geometry",
"[1536_WELLS_32X48]"))); "1536_WELLS_32X48")));
remoteConsole.prepare(new InvokeActionMenu(TopMenu.ActionMenuKind.SAMPLE_MENU_BROWSE, remoteConsole.prepare(new InvokeActionMenu(TopMenu.ActionMenuKind.SAMPLE_MENU_BROWSE,
GenericSampleRegistrationForm.RegisterSampleCallback.class)); GenericSampleRegistrationForm.RegisterSampleCallback.class));
remoteConsole.prepare(new ListSamples("CISD", sampleTypeCode)); remoteConsole.prepare(new ListSamples("CISD", sampleTypeCode));
...@@ -86,7 +86,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase ...@@ -86,7 +86,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase
remoteConsole.prepare(new ChooseTypeOfNewSample(CONTROL_LAYOUT)); remoteConsole.prepare(new ChooseTypeOfNewSample(CONTROL_LAYOUT));
remoteConsole.prepare(new FillSampleRegistrationForm("TESTGROUP", GROUP_CL + "1", true) remoteConsole.prepare(new FillSampleRegistrationForm("TESTGROUP", GROUP_CL + "1", true)
.addProperty(new PropertyField(GenericSampleRegistrationForm.ID + "plate-geometry", .addProperty(new PropertyField(GenericSampleRegistrationForm.ID + "plate-geometry",
"[1536_WELLS_32X48]"))); "1536_WELLS_32X48")));
FailureExpectation failureExpectation = FailureExpectation failureExpectation =
new FailureExpectation(GenericSampleRegistrationForm.RegisterSampleCallback.class) new FailureExpectation(GenericSampleRegistrationForm.RegisterSampleCallback.class)
.with("Authorization failure: None of method roles " .with("Authorization failure: None of method roles "
...@@ -143,7 +143,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase ...@@ -143,7 +143,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase
new PropertyField(GenericSampleRegistrationForm.ID + "user-description", new PropertyField(GenericSampleRegistrationForm.ID + "user-description",
description)).addProperty( description)).addProperty(
new PropertyField(GenericSampleRegistrationForm.ID + "plate-geometry", new PropertyField(GenericSampleRegistrationForm.ID + "plate-geometry",
"[1536_WELLS_32X48]"))); "1536_WELLS_32X48")));
remoteConsole.prepare(new InvokeActionMenu(TopMenu.ActionMenuKind.SAMPLE_MENU_BROWSE, remoteConsole.prepare(new InvokeActionMenu(TopMenu.ActionMenuKind.SAMPLE_MENU_BROWSE,
GenericSampleRegistrationForm.RegisterSampleCallback.class)); GenericSampleRegistrationForm.RegisterSampleCallback.class));
remoteConsole.prepare(new ListSamples(GroupSelectionWidget.SHARED_GROUP_CODE, remoteConsole.prepare(new ListSamples(GroupSelectionWidget.SHARED_GROUP_CODE,
......
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