|
16 | 16 | package org.labkey.test.tests.external.labModules; |
17 | 17 |
|
18 | 18 | import org.apache.commons.lang3.StringUtils; |
19 | | -import org.apache.commons.lang3.time.DateFormatUtils; |
20 | | -import org.apache.commons.lang3.time.DateUtils; |
21 | 19 | import org.apache.commons.lang3.tuple.Pair; |
22 | 20 | import org.apache.poi.ss.usermodel.Sheet; |
23 | 21 | import org.apache.poi.ss.usermodel.Workbook; |
24 | 22 | import org.junit.Assert; |
25 | 23 | import org.junit.Test; |
26 | 24 | import org.junit.experimental.categories.Category; |
27 | | -import org.labkey.api.util.DateUtil; |
28 | 25 | import org.labkey.remoteapi.CommandException; |
29 | 26 | import org.labkey.remoteapi.Connection; |
30 | 27 | import org.labkey.remoteapi.collections.CaseInsensitiveHashMap; |
@@ -1499,6 +1496,14 @@ private void samplesTableTest() throws Exception |
1499 | 1496 | new Window.WindowFinder(getDriver()).withTitle("Mark Removed").waitFor(); |
1500 | 1497 | Ext4FieldRef.getForLabel(this, "Date Removed").setValue("2017-01-02"); |
1501 | 1498 | Ext4FieldRef.getForLabel(this, "Comment").setValue("I removed these samples"); |
| 1499 | + |
| 1500 | + // TODO: for debugging date. ultimately remove |
| 1501 | + checker().withScreenshot("LabModulesTestDate1"); |
| 1502 | + |
| 1503 | + // Debug date parsing |
| 1504 | + String clientFormattedString = (String)executeScript("return Ext4.Date.format(LDK.ConvertUtils.parseDate('2017-01-02'), 'Y-m-d');"); |
| 1505 | + assertEquals("Incorrect date parsing", clientFormattedString, "2017-01-02"); |
| 1506 | + |
1502 | 1507 | waitAndClickAndWait(Ext4Helper.Locators.ext4Button("Submit")); |
1503 | 1508 |
|
1504 | 1509 | dr = new DataRegionTable.DataRegionFinder(getDriver()).withName("query").find(); |
|
0 commit comments