Skip to content

Commit 8d1f153

Browse files
Issue 52485: App admins can create and edit shorturls but can't view (#2454)
1 parent 9d8023c commit 8d1f153

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/org/labkey/test/tests/core/admin/ShortUrlTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,15 @@ public void testShortUrlPermissions()
186186
log("As app admin, update shortUrl created by another user");
187187
adminPage.submitShortUrl(shortUrl_a, targetUrl2);
188188

189-
// Issue #52485 "App admins can create and edit shorturls but can't view them"
190-
assertElementPresent(BootstrapLocators.errorBanner.withText("Table or query not found: ShortURL"));
189+
// Issue #52485 "App admins can create and edit shorturls but can't view them" (but now they can!)
190+
verifyShortUrlsInGrid(shortUrl_a, targetUrl2, shortUrl_b);
191191
});
192192

193+
verifyShortUrlsInGrid(shortUrl_a, targetUrl2, shortUrl_b);
194+
}
195+
196+
private void verifyShortUrlsInGrid(String shortUrl_a, String targetUrl2, String shortUrl_b)
197+
{
193198
Assertions.assertThat(ShortUrlAdminPage.beginAt(this).getUrlsFromGrid())
194199
.as("short URLs")
195200
.containsAllEntriesOf(Map.of(

0 commit comments

Comments
 (0)