From 3b58b5413f279cff897c9285ba66020b0ae5f4a3 Mon Sep 17 00:00:00 2001 From: labkey-tchad Date: Mon, 4 Aug 2025 08:44:29 -0700 Subject: [PATCH] Wait for active report panel to prevent NPEs --- ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java b/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java index 9b73ebaf2..7477a66de 100644 --- a/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java +++ b/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java @@ -115,7 +115,7 @@ public ParticipantViewPage clickReportTab(String reportLabel) public WebElement getActiveReportPanel() { - return activeReportPanel.findElementOrNull(getDriver()); + return activeReportPanel.waitForElement(getDriver(), 2_000); } public DataRegionTable getActiveReportDataRegion()