Skip to content
Snippets Groups Projects
Commit e5a9303f authored by felmer's avatar felmer
Browse files

system test fixed because AttachmentBrowser has been refactored

SVN: 21124
parent 2f6c41d5
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,7 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase ...@@ -168,7 +168,7 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase
checkExperiment.createAttachmentsTableCheck().expectedSize(1); checkExperiment.createAttachmentsTableCheck().expectedSize(1);
attachmentsTable.expectedRow(new Row().withCell(AttachmentGridColumnIDs.FILE_NAME, attachmentsTable.expectedRow(new Row().withCell(AttachmentGridColumnIDs.FILE_NAME,
"exampleExperiments.txt").withCell(AttachmentGridColumnIDs.VERSION, "exampleExperiments.txt").withCell(AttachmentGridColumnIDs.VERSION,
versionCellText(4))); versionCellTextWithoutAnchor(4)));
remoteConsole.prepare(attachmentsTable); remoteConsole.prepare(attachmentsTable);
launchTest(); launchTest();
...@@ -305,6 +305,11 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase ...@@ -305,6 +305,11 @@ public class GenericExperimentViewerTest extends AbstractGWTTestCase
remoteConsole.prepare(new ShowExperiment(experimentCode)); remoteConsole.prepare(new ShowExperiment(experimentCode));
} }
private final static String versionCellTextWithoutAnchor(int version)
{
return version + " (show all versions)";
}
private final static String versionCellText(int version) private final static String versionCellText(int version)
{ {
return version + " (<a href=\"#\">show all versions</a>)"; 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