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

[LMS-1625] fixed attachment browser expectations

SVN: 16930
parent 0308424b
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,8 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase
final CheckTableCommand attachmentsTable =
checkExperiment.attachmentsTable().expectedSize(1);
attachmentsTable.expectedRow(new Row().withCell(AttachmentColDefKind.FILE_NAME.id(),
"exampleExperiments.txt").withCell(AttachmentColDefKind.VERSION.id(), 4));
"exampleExperiments.txt").withCell(AttachmentColDefKind.VERSION.id(),
versionCellText(4)));
remoteConsole.prepare(checkExperiment);
launchTest();
......@@ -176,9 +177,10 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase
final CheckTableCommand attachmentsTable =
checkExperiment.attachmentsTable().expectedSize(2);
attachmentsTable.expectedRow(new Row().withCell(AttachmentColDefKind.FILE_NAME.id(),
"exampleExperiments.txt").withCell(AttachmentColDefKind.VERSION.id(), 1));
"exampleExperiments.txt").withCell(AttachmentColDefKind.VERSION.id(),
versionCellText(1)));
attachmentsTable.expectedRow(new Row().withCell(AttachmentColDefKind.FILE_NAME.id(),
"cellPlates.txt").withCell(AttachmentColDefKind.VERSION.id(), 1));
"cellPlates.txt").withCell(AttachmentColDefKind.VERSION.id(), versionCellText(1)));
remoteConsole.prepare(checkExperiment);
launchTest();
......@@ -238,4 +240,10 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase
remoteConsole.prepare(new ListExperiments(projectName, experimentTypeName));
remoteConsole.prepare(new ShowExperiment(experimentCode));
}
private final static String versionCellText(int version)
{
// TODO 2010-07-08, Piotr Buczek: implement better html tag stripping in TestUtil
return version + " (<a href=\"#\">show all versions</a>)";
}
}
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