From 0d60a958a9b039991ccafbe74ee79cef6c1964e2 Mon Sep 17 00:00:00 2001 From: Binal Patel Date: Thu, 2 Sep 2021 15:42:32 -0700 Subject: [PATCH] Update test to match the UnauthorizedException message. --- .../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());