Skip to content

Commit 154b36a

Browse files
authored
Fix column identifiers in HDRLTest (#239)
1 parent b95e519 commit 154b36a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

hdrl/test/src/org/labkey/test/tests/HDRLTest.java renamed to hdrl/test/src/org/labkey/test/tests/hdrl/HDRLTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.labkey.test.tests;
16+
package org.labkey.test.tests.hdrl;
1717

1818
import org.junit.Assert;
1919
import org.junit.Before;
@@ -50,7 +50,7 @@
5050
import static org.junit.Assert.assertTrue;
5151
import static org.labkey.test.util.PermissionsHelper.READER_ROLE;
5252

53-
@Category({Git.class})
53+
@Category({Git.class}) // Requires dataintegration module
5454
@BaseWebDriverTest.ClassTimeout(minutes = 8)
5555
public class HDRLTest extends BaseWebDriverTest implements PostgresOnlyTest
5656
{
@@ -212,15 +212,15 @@ public void testRetrievalOfResultsAndArchiving() throws Exception
212212
specimen1.put("SampleIntegrity", "Hemolyzed");
213213
specimen1.put("TestResult", "HIV Negative");
214214
specimen1.put("CustomerCode", "5B");
215-
specimen1.put("RequestStatus", "Completed");
215+
specimen1.put("RequestStatusId", "Completed");
216216
specimen1.put("ModifiedResultFlag", "F");
217217

218218
Map<String, String> specimen2 = new HashMap<>();
219219

220220
specimen2.put("RequestId", requestId);
221221
specimen2.put("SpecimenId", specimenIds.get(1));
222222
specimen2.put("Received", "2015-06-01 00:00");
223-
specimen2.put("RequestStatus", "Exception");
223+
specimen2.put("RequestStatusId", "Exception");
224224
specimen2.put("ModifiedResultFlag", "F");
225225

226226
List<Map<String, String>> specimens = new ArrayList<>();
@@ -392,10 +392,10 @@ public void testFileUploadAndSubmit()
392392

393393
log("edit an existing request");
394394
goToProjectHome();
395-
click(Locator.linkContainingText("View test requests"));
395+
clickAndWait(Locator.linkContainingText("View test requests"));
396396

397397
DataRegionTable drt = new DataRegionTable("query", this);
398-
int idx = drt.getRowIndex("ShippingCarrier", "FedEx");
398+
int idx = drt.getRowIndex("ShippingCarrierId", "FedEx");
399399
assertNotEquals(-1, idx);
400400
clickAndWait(drt.link(idx, 0));
401401
log("submitting an existing request");
@@ -404,7 +404,7 @@ public void testFileUploadAndSubmit()
404404
clickButton(SUBMIT_BUTTON_TEXT);
405405

406406
drt = new DataRegionTable("query", this);
407-
idx = drt.getRowIndex("ShippingCarrier", "FedEx");
407+
idx = drt.getRowIndex("ShippingCarrierId", "FedEx");
408408
assertNotEquals(-1, idx);
409409
Assert.assertFalse(drt.getDataAsText(idx, "Submitted By").trim().isEmpty()); // "submitted by" field should be filled in
410410
Assert.assertFalse(drt.getDataAsText(idx, "Submitted").trim().isEmpty()); // submitted date should be filled in
@@ -423,7 +423,7 @@ public void testFileUploadAndSubmit()
423423
goToProjectHome();
424424
clickAndWait(Locator.linkContainingText("View test requests"));
425425
drt = new DataRegionTable("query", this);
426-
idx = drt.getRowIndex("ShippingCarrier", "FedEx");
426+
idx = drt.getRowIndex("ShippingCarrierId", "FedEx");
427427
assertNotEquals(-1, idx);
428428
log("ensure submitted requests are still editable by admins");
429429
assertEquals("VIEW", drt.getDataAsText(idx, 0));
@@ -526,7 +526,7 @@ public void testDataDeletion()
526526
getDriver().close();
527527
switchToMainWindow();
528528
goToProjectHome();
529-
click(Locator.linkWithText("View test requests"));
529+
clickAndWait(Locator.linkWithText("View test requests"));
530530
DataRegionTable drt = new DataRegionTable("query", this);
531531
int idx = drt.getRowIndex("ShippingNumber", "testRetrievalOfResults");
532532
assertNotEquals(-1, idx);
@@ -641,9 +641,9 @@ protected void setupFolder()
641641
protected void setTimeWindow()
642642
{
643643
goToAdminConsole();
644-
click(Locator.linkWithText("HDRL Sensitive Data"));
644+
clickAndWait(Locator.linkWithText("HDRL Sensitive Data"));
645645
setFormElement(Locator.name("timeWindowInDays"), "0");
646-
click(Locator.linkWithSpan("Save"));
646+
clickAndWait(Locator.linkWithSpan("Save"));
647647
}
648648

649649
@Override

0 commit comments

Comments
 (0)