Skip to content

Commit f5c3bda

Browse files
Constants for many commonly used role names in tests (#265)
1 parent 114d7fb commit f5c3bda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LDK/test/src/org/labkey/test/tests/external/labModules/LabModulesTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
import static org.junit.Assert.assertNotNull;
7676
import static org.junit.Assert.assertNull;
7777
import static org.junit.Assert.assertTrue;
78+
import static org.labkey.test.util.PermissionsHelper.READER_ROLE;
7879

7980
/**
8081
* Contains a series of tests designed to test the UI in the laboratory module.
@@ -634,7 +635,7 @@ private void overviewUITest()
634635
goToProjectHome();
635636

636637
//verify import not visible to reader
637-
impersonateRole("Reader");
638+
impersonateRole(READER_ROLE);
638639
_helper.goToLabHome();
639640

640641
waitForElement(LabModuleHelper.getNavPanelRow("Sequence:"), WAIT_FOR_PAGE);
@@ -1216,7 +1217,7 @@ private void labToolsWebpartTest()
12161217
//verify settings hidden for readers
12171218
Locator settings = _helper.toolIcon("Settings");
12181219
assertElementPresent(settings);
1219-
impersonateRole("Reader");
1220+
impersonateRole(READER_ROLE);
12201221
_helper.goToLabHome();
12211222
assertElementNotPresent(settings);
12221223
stopImpersonatingRole();

0 commit comments

Comments
 (0)