Skip to content

Commit 244498e

Browse files
committed
Remove bad merge bit and fix bad string format
1 parent 3e9cf46 commit 244498e

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/org/labkey/test/tests/SampleTypeNameExpressionTest.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -896,16 +896,7 @@ public void testNameExpressionPreview() throws IOException, CommandException
896896
mouseOver(createPage.getComponentElement());
897897

898898
log("Use a name expression using a field from the named parent, with parent type not encoded.");
899-
nameExpressionBad = String.format("SNP_${genId}_${%s/$s}_${materialInputs/%s/%s}", parentAlias, PARENT_FIELD_CURLY_RIGHT_INT.getExpName(), PARENT_SAMPLE_TYPE, PARENT_FIELD_CURLY_LEFT.getName());
900-
createPage.setNameExpression(nameExpressionBad);
901-
actualMsg = createPage.getNameExpressionPreview();
902-
checker().withScreenshot("Parent_Fields_Preview_Error")
903-
.verifyTrue("Tool-tip message does not contain expected example.", actualMsg.contains("Unable to generate example name from the current pattern. Check for syntax errors."));
904-
// Make the tooltip go away.
905-
mouseOver(createPage.getComponentElement());
906-
907-
log("Use a name expression using a field from the named parent, with parent type not encoded.");
908-
nameExpressionBad = String.format("SNP_${genId}_${%s/$s}_${materialInputs/%s/%s}", parentAlias, COL_INT.getExpName(), PARENT_SAMPLE_TYPE, COL_STR.getName());
899+
nameExpressionBad = String.format("SNP_${genId}_${%s/%s}_${materialInputs/%s/%s}", parentAlias, PARENT_FIELD_CURLY_RIGHT_INT.getExpName(), PARENT_SAMPLE_TYPE, PARENT_FIELD_CURLY_LEFT.getName());
909900
createPage.setNameExpression(nameExpressionBad);
910901
actualMsg = createPage.getNameExpressionPreview();
911902
checker().withScreenshot("Parent_Fields_Preview_Error")

0 commit comments

Comments
 (0)