File tree Expand file tree Collapse file tree
LDK/test/src/org/labkey/test/tests/external/labModules Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments