From 21a59137dcef1115bd2bfef278876f5458729980 Mon Sep 17 00:00:00 2001 From: Binal Patel Date: Thu, 2 Sep 2021 16:12:50 -0700 Subject: [PATCH] Update test to match the UnauthorizedException message. (#103) -Update test to verify text "User does not have permission to perform this operation" (previously: "You do not have the permissions required to access this page") --- .../test/tests/wnprc_purchasing/WNPRC_PurchasingTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WNPRC_Purchasing/test/src/org/labkey/test/tests/wnprc_purchasing/WNPRC_PurchasingTest.java b/WNPRC_Purchasing/test/src/org/labkey/test/tests/wnprc_purchasing/WNPRC_PurchasingTest.java index b25f10108..787d28904 100644 --- a/WNPRC_Purchasing/test/src/org/labkey/test/tests/wnprc_purchasing/WNPRC_PurchasingTest.java +++ b/WNPRC_Purchasing/test/src/org/labkey/test/tests/wnprc_purchasing/WNPRC_PurchasingTest.java @@ -509,7 +509,7 @@ public void testAdminPage() throws IOException, CommandException goToPurchaseAdminPage(); checker().verifyTrue(REQUESTER_USER_1 + "user should not permission for admin page", isElementPresent(Locator.tagWithClass("div", "labkey-error-subheading") - .withText("You do not have the permissions required to access this page."))); + .withText("User does not have permission to perform this operation."))); goBack(); log("Creating request as " + REQUESTER_USER_1); @@ -660,7 +660,7 @@ public void testReceiverActions() goToPurchaseAdminPage(); checker().verifyTrue("Receiver should not have permission to access admin page", isElementPresent(Locator.tagWithClass("div", "labkey-error-subheading") - .withText("You do not have the permissions required to access this page."))); + .withText("User does not have permission to perform this operation."))); goToReceiverPage(); waitAndClickAndWait(Locator.linkWithText(requestId2)); requestPage = new CreateRequestPage(getDriver());