Skip to content

Commit cc83bc6

Browse files
committed
Update text for "can't upload attachment" error message for consistency
1 parent eca8fd2 commit cc83bc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public final void testList() throws Exception
372372
importFilePathError(listImportPage, "1", PDF_FILE.getName());
373373
importFilePathError(listImportPage, "5", PDF_FILE.getName());
374374

375-
String attachmentError = "Can't upload '%s' to field %s with type Attachment.";
375+
String attachmentError = "Cannot upload '%s' to Attachment type field '%s'.";
376376
String attachmentPdfError = String.format(attachmentError, PDF_FILE.getName(), LIST_ATTACHMENT01_NAME);
377377
String attachmentAbsentError = String.format(attachmentError, "Absent.txt", LIST_ATTACHMENT01_NAME);
378378
verifyQueryAPI("lists", LIST_NAME, Map.of(LIST_KEY_NAME, 5, LIST_ATTACHMENT01_NAME, PDF_FILE.getName()), true, "Row 1: " + attachmentPdfError);
@@ -397,7 +397,7 @@ private void importFilePathError(ImportDataPage listImportPage, String key, Stri
397397
listImportPage.submitExpectingError();
398398
try
399399
{
400-
String expectedError = "Row 1: Can't upload '" + attachmentValue + "' to field " + LIST_ATTACHMENT01_NAME + " with type Attachment.";
400+
String expectedError = "Row 1: Cannot upload '" + attachmentValue + "' to Attachment type field '" + LIST_ATTACHMENT01_NAME + "'.";
401401
checker().withScreenshot("import_error").verifyTrue("Invalid attachment error not as expected", isElementPresent(Locator.tagWithClass("div", "labkey-error").withText(expectedError)));
402402
}
403403
catch(NoSuchElementException nse)

0 commit comments

Comments
 (0)