@@ -173,6 +173,8 @@ export class ContentUiHelper extends UiBaseLocators {
173173 private readonly refListBlock : Locator ;
174174 private readonly propertyActionMenu : Locator ;
175175 private readonly listViewCustomRows : Locator ;
176+ private readonly collectionMenu : Locator ;
177+ private readonly entityPickerTree : Locator ;
176178
177179 constructor ( page : Page ) {
178180 super ( page ) ;
@@ -356,6 +358,9 @@ export class ContentUiHelper extends UiBaseLocators {
356358 this . propertyActionMenu = page . locator ( '#property-action-popover umb-popover-layout' ) ;
357359 // List view custom
358360 this . listViewCustomRows = page . locator ( 'table tbody tr' ) ;
361+ // Entity Data Picker
362+ this . collectionMenu = page . locator ( 'umb-collection-menu' ) ;
363+ this . entityPickerTree = page . locator ( 'umb-tree[alias="Umb.Tree.EntityDataPicker"]' ) ;
359364 }
360365
361366 async enterContentName ( name : string ) {
@@ -1769,4 +1774,24 @@ export class ContentUiHelper extends UiBaseLocators {
17691774 await expect ( this . nextBtn ) . toBeVisible ( ) ;
17701775 await this . nextBtn . click ( ) ;
17711776 }
1777+
1778+ // Entity Data Picker
1779+ async chooseCollectionMenuItemWithName ( name : string ) {
1780+ await this . clickChooseButton ( ) ;
1781+ await this . collectionMenu . locator ( 'umb-collection-menu-item' , { hasText : name } ) . click ( ) ;
1782+ await this . clickChooseContainerButton ( ) ;
1783+ }
1784+
1785+ async chooseTreeMenuItemWithName ( name : string , parentNames : string [ ] = [ ] ) {
1786+ await this . clickChooseButton ( ) ;
1787+ for ( const itemName of parentNames ) {
1788+ await this . entityPickerTree . locator ( 'umb-tree-item' ) . getByLabel ( 'Expand child items for ' + itemName ) . click ( ) ;
1789+ }
1790+ await this . container . getByLabel ( name ) . click ( ) ;
1791+ await this . clickChooseContainerButton ( ) ;
1792+ }
1793+
1794+ async isChooseButtonVisible ( isVisible : boolean = true ) {
1795+ await expect ( this . chooseBtn ) . toBeVisible ( { visible : isVisible } ) ;
1796+ }
17721797}
0 commit comments