@alfresco/aca-playwright-shared 8.0.0-28932229495 → 8.0.0-29011765952

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -550,6 +550,56 @@ const logger = {
550
550
  table: (message) => console.table(message)
551
551
  };
552
552
 
553
+ /*!
554
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
555
+ *
556
+ * Alfresco Example Content Application
557
+ *
558
+ * This file is part of the Alfresco Example Content Application.
559
+ * If the software was purchased under a paid Alfresco license, the terms of
560
+ * the paid license agreement will prevail. Otherwise, the software is
561
+ * provided under the following open source license terms:
562
+ *
563
+ * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
564
+ * it under the terms of the GNU Lesser General Public License as published by
565
+ * the Free Software Foundation, either version 3 of the License, or
566
+ * (at your option) any later version.
567
+ *
568
+ * The Alfresco Example Content Application is distributed in the hope that it will be useful,
569
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
570
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
571
+ * GNU Lesser General Public License for more details.
572
+ *
573
+ * You should have received a copy of the GNU Lesser General Public License
574
+ * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
575
+ */
576
+ async function seedRepositoryTestData(apis) {
577
+ const { userNodesApi, adminNodesApi } = apis;
578
+ const repoFolderName = `repo-folder-${Utils.random()}`;
579
+ const repoFileName = `repo-file-${Utils.random()}.txt`;
580
+ const personalFileName = `personal-file-${Utils.random()}.txt`;
581
+ const repoFolder = (await adminNodesApi.createFolder(repoFolderName, '-root-')).entry;
582
+ const repoFile = (await adminNodesApi.createFile(repoFileName, repoFolder.id)).entry;
583
+ const personalFile = (await userNodesApi.createFile(personalFileName)).entry;
584
+ return {
585
+ repoFolder: { id: repoFolder.id, name: repoFolderName },
586
+ repoFile: { id: repoFile.id, name: repoFileName },
587
+ personalFile: { id: personalFile.id, name: personalFileName }
588
+ };
589
+ }
590
+ async function cleanupRepositoryTestData(testData, apis) {
591
+ if (!testData) {
592
+ return;
593
+ }
594
+ const { adminNodesApi } = apis;
595
+ if (testData.personalFile?.id) {
596
+ await adminNodesApi.deleteNodes([testData.personalFile.id], true);
597
+ }
598
+ if (testData.repoFolder?.id) {
599
+ await adminNodesApi.deleteNodes([testData.repoFolder.id], true);
600
+ }
601
+ }
602
+
553
603
  /*!
554
604
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
555
605
  *
@@ -1473,6 +1523,7 @@ class ContentNodeSelectorDialog extends BaseComponent {
1473
1523
  this.cancelButton = this.getChild('[data-automation-id="content-node-selector-actions-cancel"]');
1474
1524
  this.actionButton = this.getChild('[data-automation-id="content-node-selector-actions-choose"]');
1475
1525
  this.locationDropDown = this.getChild('[id="site-dropdown-container"] .adf-sites-dropdown-form-field');
1526
+ this.searchInput = this.getChild('[data-automation-id="content-node-selector-search-input"]');
1476
1527
  this.getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
1477
1528
  this.getDialogTitle = (text) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
1478
1529
  this.getBreadcrumb = (text) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
@@ -1505,6 +1556,12 @@ class ContentNodeSelectorDialog extends BaseComponent {
1505
1556
  timeout: 20_000
1506
1557
  });
1507
1558
  }
1559
+ async searchAndSelectDestination(folderName) {
1560
+ await expect(this.searchInput).toBeVisible();
1561
+ await this.searchInput.fill(folderName);
1562
+ await this.spinnerWaitForReload();
1563
+ await this.selectDestination(folderName);
1564
+ }
1508
1565
  }
1509
1566
 
1510
1567
  /*!
@@ -7641,5 +7698,5 @@ const TEST_FILES = {
7641
7698
  * Generated bundle index. Do not edit.
7642
7699
  */
7643
7700
 
7644
- export { APP_ROUTES, AcaHeader, ActionType, ActionTypes, ActionsDropdownComponent, AdfConfirmDialogComponent, AdfDeleteTrashComponent, AdfFolderDialogComponent, AdfInfoDrawerComponent, AdfLibraryDialogComponent, ApiClientFactory, BaseComponent, BasePage, Breadcrumb, CategoriesApi, Comparator, ConditionComponent, ConditionsTypes, ContentNodeSelectorDialog, CreateFromTemplateDialogComponent, DataTableComponent, DateTimePicker, EditDialog, EditModeComponent, ErrorComponent, FavoritesLibrariesPage, FavoritesPage, FavoritesPageApi, Field, FileActionsApi, FolderInformationDialogComponent, LinkRulesDialog, LoginPage, ManageRules, ManageRulesDialogComponent, ManageVersionsDialog, MatMenuComponent, MimeType, MyLibrariesPage, NodesApi, NodesPage, PaginationActionsType, PaginationComponent, PasswordOverlayDialogComponent, Person, PersonalFilesPage, QueriesApi, RecentFilesPage, RulesApi, RulesToolbarComponent, SIDEBAR_LABELS, SITE_ROLES, SITE_VISIBILITY, SearchApi, SearchFilters, SearchFiltersCategories, SearchFiltersDate, SearchFiltersLocation, SearchFiltersLogic, SearchFiltersProperties, SearchFiltersTags, SearchInputComponent, SearchMenuCard, SearchPage, SearchSortingPicker, ShareDialogComponent, SharedLinksApi, SharedPage, SidenavComponent, SitesApi, SnackBarComponent, TEST_FILES, TagsApi, TrashPage, TrashcanApi, UploadDialog, UploadNewVersionDialog, UserModel, Utils, ViewerComponent, ViewerOverlayDialogComponent, collaboratorDocToolbarMore, collaboratorEditRowToolbarMore, collaboratorLockCurrentUserToolbarMore, collaboratorLockOtherUserSearchToolbarMore, collaboratorLockOtherUserToolbarMore, collaboratorSharedToolbarPrimary, collaboratorToolbarPrimary, createSuiteProjects, errorStrings, favoritesCollaboratorToolbarMore, file, fileDocx, fileDocxFav, fileDocxShared, fileDocxSharedFav, fileFav, fileFavLocked, fileGranularPermission, fileLocked, fileLockedByUser, fileShared, fileSharedFav, fileSharedFavLocked, fileSharedLocked, flattenNodeContentTree, folder, folderFav, folderFav2, folderFavFile, folderFile, getBrowserProjects, getExcludedTestsRegExpArray, getGlobalConfig, getUserState, libraryErrors, logger, multipleSel, multipleSelAllFav, multipleSelFile, paths, random$1 as random, test, testEmailDomain, timeouts, users, waitForApi };
7701
+ export { APP_ROUTES, AcaHeader, ActionType, ActionTypes, ActionsDropdownComponent, AdfConfirmDialogComponent, AdfDeleteTrashComponent, AdfFolderDialogComponent, AdfInfoDrawerComponent, AdfLibraryDialogComponent, ApiClientFactory, BaseComponent, BasePage, Breadcrumb, CategoriesApi, Comparator, ConditionComponent, ConditionsTypes, ContentNodeSelectorDialog, CreateFromTemplateDialogComponent, DataTableComponent, DateTimePicker, EditDialog, EditModeComponent, ErrorComponent, FavoritesLibrariesPage, FavoritesPage, FavoritesPageApi, Field, FileActionsApi, FolderInformationDialogComponent, LinkRulesDialog, LoginPage, ManageRules, ManageRulesDialogComponent, ManageVersionsDialog, MatMenuComponent, MimeType, MyLibrariesPage, NodesApi, NodesPage, PaginationActionsType, PaginationComponent, PasswordOverlayDialogComponent, Person, PersonalFilesPage, QueriesApi, RecentFilesPage, RulesApi, RulesToolbarComponent, SIDEBAR_LABELS, SITE_ROLES, SITE_VISIBILITY, SearchApi, SearchFilters, SearchFiltersCategories, SearchFiltersDate, SearchFiltersLocation, SearchFiltersLogic, SearchFiltersProperties, SearchFiltersTags, SearchInputComponent, SearchMenuCard, SearchPage, SearchSortingPicker, ShareDialogComponent, SharedLinksApi, SharedPage, SidenavComponent, SitesApi, SnackBarComponent, TEST_FILES, TagsApi, TrashPage, TrashcanApi, UploadDialog, UploadNewVersionDialog, UserModel, Utils, ViewerComponent, ViewerOverlayDialogComponent, cleanupRepositoryTestData, collaboratorDocToolbarMore, collaboratorEditRowToolbarMore, collaboratorLockCurrentUserToolbarMore, collaboratorLockOtherUserSearchToolbarMore, collaboratorLockOtherUserToolbarMore, collaboratorSharedToolbarPrimary, collaboratorToolbarPrimary, createSuiteProjects, errorStrings, favoritesCollaboratorToolbarMore, file, fileDocx, fileDocxFav, fileDocxShared, fileDocxSharedFav, fileFav, fileFavLocked, fileGranularPermission, fileLocked, fileLockedByUser, fileShared, fileSharedFav, fileSharedFavLocked, fileSharedLocked, flattenNodeContentTree, folder, folderFav, folderFav2, folderFavFile, folderFile, getBrowserProjects, getExcludedTestsRegExpArray, getGlobalConfig, getUserState, libraryErrors, logger, multipleSel, multipleSelAllFav, multipleSelFile, paths, random$1 as random, seedRepositoryTestData, test, testEmailDomain, timeouts, users, waitForApi };
7645
7702
  //# sourceMappingURL=alfresco-aca-playwright-shared.mjs.map