From f882edb81d6895bb00b856b9d7218a261d98ac88 Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Mon, 19 May 2025 14:48:41 -0700 Subject: [PATCH] Issue 52485: App admins can create and edit shorturls but can't view --- src/org/labkey/test/tests/core/admin/ShortUrlTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/org/labkey/test/tests/core/admin/ShortUrlTest.java b/src/org/labkey/test/tests/core/admin/ShortUrlTest.java index cb56dcd27c..508986fafa 100644 --- a/src/org/labkey/test/tests/core/admin/ShortUrlTest.java +++ b/src/org/labkey/test/tests/core/admin/ShortUrlTest.java @@ -186,10 +186,15 @@ public void testShortUrlPermissions() log("As app admin, update shortUrl created by another user"); adminPage.submitShortUrl(shortUrl_a, targetUrl2); - // Issue #52485 "App admins can create and edit shorturls but can't view them" - assertElementPresent(BootstrapLocators.errorBanner.withText("Table or query not found: ShortURL")); + // Issue #52485 "App admins can create and edit shorturls but can't view them" (but now they can!) + verifyShortUrlsInGrid(shortUrl_a, targetUrl2, shortUrl_b); }); + verifyShortUrlsInGrid(shortUrl_a, targetUrl2, shortUrl_b); + } + + private void verifyShortUrlsInGrid(String shortUrl_a, String targetUrl2, String shortUrl_b) + { Assertions.assertThat(ShortUrlAdminPage.beginAt(this).getUrlsFromGrid()) .as("short URLs") .containsAllEntriesOf(Map.of(