Skip to content

Commit b064c5f

Browse files
committed
Expand test coverage over button permissions
1 parent 9d548be commit b064c5f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ public void testSteps() throws Exception
240240
urlGenerationTest();
241241
peptideTableTest();
242242
searchPanelTest();
243+
244+
testButtonPermissions();
243245
}
244246

245247
protected void setUpTest() throws Exception
@@ -1877,4 +1879,24 @@ public void checkViews()
18771879
//the module contains an R report tied to a specific assay name, so view check fails when an assay of that name isnt present
18781880
//when module-based assays can supply reports this should be corrected
18791881
}
1882+
1883+
protected void testButtonPermissions() throws Exception
1884+
{
1885+
goToProjectHome();
1886+
_helper.clickNavPanelItem("Samples:", "Browse All");
1887+
1888+
DataRegionTable dr = new DataRegionTable("query", this);
1889+
dr.checkAllOnPage();
1890+
1891+
dr.clickHeaderMenu("More Actions", false);
1892+
assertElementPresent(Locator.tagWithText("a", "Bulk Edit"));
1893+
1894+
impersonateRole("Reader");
1895+
1896+
dr = new DataRegionTable("query", this);
1897+
dr.checkAllOnPage();
1898+
1899+
dr.clickHeaderMenu("More Actions", false);
1900+
assertElementNotPresent(Locator.tagWithText("a", "Bulk Edit"));
1901+
}
18801902
}

0 commit comments

Comments
 (0)