@@ -152,7 +152,6 @@ export class UiBaseLocators {
152152 public readonly createNewDocumentBlueprintBtn : Locator ;
153153 public readonly openedModal : Locator ;
154154 public readonly uiLoader : Locator ;
155- public readonly createDocumentBlueprintModal : Locator ;
156155
157156 constructor ( page : Page ) {
158157 this . page = page ;
@@ -265,9 +264,8 @@ export class UiBaseLocators {
265264 this . gridBtn = page . getByLabel ( 'Grid' ) ;
266265 this . listBtn = page . getByLabel ( 'List' ) ;
267266 this . viewBundleBtn = page . locator ( 'umb-collection-view-bundle uui-button svg' ) ;
268- this . createDocumentBlueprintModal = page . locator ( 'umb-document-blueprint-options-create-modal' ) ;
269267 this . createDocumentBlueprintBtn = page . getByLabel ( / ^ C r e a t e D o c u m e n t B l u e p r i n t ( … ) ? $ / ) ;
270- this . createNewDocumentBlueprintBtn = this . createDocumentBlueprintModal . locator ( 'umb-ref-item ', { hasText : 'Document Blueprint for' } ) ;
268+ this . createNewDocumentBlueprintBtn = page . getByRole ( 'button ', { name : 'New Document Blueprint for...' } ) ;
271269 this . chooseDocumentInputBtn = page . locator ( 'umb-input-document' ) . getByLabel ( 'Choose' ) ;
272270 this . chooseMediaInputBtn = page . locator ( 'umb-input-media' ) . getByLabel ( 'Choose' ) ;
273271 this . container = page . locator ( '#container' ) ;
@@ -292,7 +290,7 @@ export class UiBaseLocators {
292290 this . createActionButtonCollection = page . locator ( 'umb-collection-create-action-button' ) ;
293291 this . createActionBtn = this . createActionButtonCollection . locator ( '[label="Create"]' ) ;
294292 this . collectionTreeItemTableRow = page . locator ( 'umb-collection-workspace-view umb-table uui-table-row' ) ;
295- this . folderBtn = this . createOptionActionListModal . locator ( 'umb-ref-item' , { hasText : ' Folder' } ) ;
293+ this . folderBtn = this . createOptionActionListModal . locator ( '[name=" Folder"]' ) ;
296294 this . reloadChildrenBtn = page . getByRole ( 'button' , { name : 'Reload children' } ) ;
297295 this . confirmActionModalEntityReferences = page . locator ( 'umb-confirm-action-modal-entity-references,umb-confirm-bulk-action-modal-entity-references' ) ;
298296 this . referenceHeadline = this . confirmActionModalEntityReferences . locator ( '#reference-headline' ) . first ( ) ;
@@ -1425,4 +1423,8 @@ export class UiBaseLocators {
14251423 async isWorkspaceViewTabWithAliasVisible ( alias : string , isVisible : boolean = true ) {
14261424 await expect ( this . page . getByTestId ( 'workspace:view-link:' + alias ) ) . toBeVisible ( { visible : isVisible } ) ;
14271425 }
1426+
1427+ async isDashboardTabWithNameVisible ( name : string , isVisible : boolean = true ) {
1428+ await expect ( this . page . locator ( 'uui-tab[label="' + name + '"]' ) ) . toBeVisible ( { visible : isVisible } ) ;
1429+ }
14281430}
0 commit comments