|
33 | 33 | import org.labkey.test.params.FieldDefinition.ColumnType; |
34 | 34 | import org.labkey.test.util.DataRegionExportHelper; |
35 | 35 | import org.labkey.test.util.DataRegionTable; |
| 36 | +import org.labkey.test.util.DomainUtils; |
36 | 37 | import org.labkey.test.util.ExcelHelper; |
37 | 38 | import org.labkey.test.util.TestDataGenerator; |
38 | 39 | import org.openqa.selenium.By; |
|
47 | 48 |
|
48 | 49 | import static org.junit.Assert.assertEquals; |
49 | 50 | import static org.junit.Assert.assertTrue; |
| 51 | +import static org.labkey.test.util.TestDataGenerator.ALL_CHARS_PLACEHOLDER; |
| 52 | +import static org.labkey.test.util.TestDataGenerator.REPEAT_PLACEHOLDER; |
50 | 53 |
|
51 | 54 | @Category(Daily.class) |
52 | 55 | @BaseWebDriverTest.ClassTimeout(minutes = 5) |
53 | 56 | public class InlineImagesListTest extends BaseWebDriverTest |
54 | 57 | { |
55 | | - protected final static String LIST_NAME = TestDataGenerator.randomDomainName("InlineImagesList"); |
56 | | - protected final static String LIST_KEY_NAME = TestDataGenerator.randomFieldName("Key"); |
| 58 | + protected final static String LIST_NAME = TestDataGenerator.randomDomainName("InlineImagesList", DomainUtils.DomainKind.IntList); |
| 59 | + // list key name has a smaller max length than other field names, so we use a constant numEndChars and exclude the repeat and all chars placeholders |
| 60 | + protected final static String LIST_KEY_NAME = TestDataGenerator.randomFieldName("Key" + ALL_CHARS_PLACEHOLDER, 0, 5, "" + ALL_CHARS_PLACEHOLDER + REPEAT_PLACEHOLDER, DomainUtils.DomainKind.IntList); |
57 | 61 | protected final static ColumnType LIST_KEY_TYPE = ColumnType.Integer; |
58 | 62 |
|
59 | | - protected final static String LIST_ATTACHMENT01_NAME = TestDataGenerator.randomFieldName("Attachment01"); |
60 | | - protected final static String LIST_ATTACHMENT01_LABEL = TestDataGenerator.randomFieldName("Attachment Column 01"); |
| 63 | + protected final static String LIST_ATTACHMENT01_NAME = TestDataGenerator.randomFieldName("Attachment01", null, DomainUtils.DomainKind.IntList); |
| 64 | + protected final static String LIST_ATTACHMENT01_LABEL = "Attachment Column 01"; |
61 | 65 | protected final static String LIST_ATTACHMENT01_DESC = "An 1st attachment column."; |
62 | 66 |
|
63 | | - protected final static String LIST_ATTACHMENT02_NAME = TestDataGenerator.randomFieldName("Attachment02"); |
64 | | - protected final static String LIST_ATTACHMENT02_LABEL = TestDataGenerator.randomFieldName("Attachment Column 02"); |
| 67 | + protected final static String LIST_ATTACHMENT02_NAME = TestDataGenerator.randomFieldName("Attachment02", null, DomainUtils.DomainKind.IntList); |
| 68 | + protected final static String LIST_ATTACHMENT02_LABEL = "Attachment Column 02"; |
65 | 69 | protected final static String LIST_ATTACHMENT02_DESC = "An 2nd attachment column."; |
66 | 70 |
|
67 | 71 | protected final static ColumnType LIST_ATTACHMENT_TYPE = ColumnType.Attachment; |
|
0 commit comments