Skip to content

Commit 7b57207

Browse files
Merge 25.12 to develop
2 parents 7c1189f + 4264b4e commit 7b57207

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicMyDataViewTest.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void testMyDataView()
8585
// Sign out. Guest should not be able to see the "My Data" button
8686
simpleSignOut();
8787
goToProjectHome(PANORAMA_PUBLIC);
88-
var table = new DataRegionTable.DataRegionFinder(getDriver()).refindWhenNeeded();
88+
var table = findPanoramaPublicExperimentsDataRegion();
8989
assertFalse(table.hasHeaderMenu("My Data"));
9090

9191
simpleSignIn();
@@ -192,12 +192,17 @@ private void verifyColumnValues(DataRegionTable table, int catalogEntryCol, int
192192
@NotNull
193193
private DataRegionTable myDataView()
194194
{
195-
// The "Panorama Public Search" webpart re-renders the "Targeted MS Experiment List" webpart with a different
196-
// title which can cause a StaleElementReferenceException. Find the dataregion by the updated webpart title.
197-
var table = new DataRegionTable.DataRegionFinder(getDriver())
198-
.find(WebPartPanel.WebPart(getDriver()).withTitle("Panorama Public Experiments").waitFor());
195+
var table = findPanoramaPublicExperimentsDataRegion();
199196
assertTrue(table.hasHeaderMenu("My Data"));
200197
table.clickHeaderButtonAndWait("My Data");
201198
return new DataRegionTable.DataRegionFinder(getDriver()).refindWhenNeeded();
202199
}
200+
201+
// The "Panorama Public Search" webpart re-renders the "Targeted MS Experiment List" webpart with a different
202+
// title which can cause a StaleElementReferenceException. Find the dataregion by the updated webpart title.
203+
private DataRegionTable findPanoramaPublicExperimentsDataRegion()
204+
{
205+
return new DataRegionTable.DataRegionFinder(getDriver())
206+
.find(WebPartPanel.WebPart(getDriver()).withTitle("Panorama Public Experiments").waitFor());
207+
}
203208
}

0 commit comments

Comments
 (0)