@alfresco/aca-playwright-shared 7.4.0-23139060722 → 7.4.0-23140432859
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.
|
@@ -188,8 +188,8 @@ function getUserState(user) {
|
|
|
188
188
|
*/
|
|
189
189
|
const crypto = require('crypto');
|
|
190
190
|
class Utils {
|
|
191
|
-
static string257Long = 'x'.repeat(257);
|
|
192
|
-
static string513Long = 'x'.repeat(513);
|
|
191
|
+
static { this.string257Long = 'x'.repeat(257); }
|
|
192
|
+
static { this.string513Long = 'x'.repeat(513); }
|
|
193
193
|
static random() {
|
|
194
194
|
return crypto.getRandomValues(new Uint32Array(1))[0].toString(36).substring(0, 5).toLowerCase();
|
|
195
195
|
}
|
|
@@ -533,12 +533,12 @@ const logColor = '\x1b[35m%s\x1b[0m';
|
|
|
533
533
|
const warnColor = '\x1b[33m%s\x1b[0m';
|
|
534
534
|
const errorColor = '\x1b[31m%s\x1b[0m';
|
|
535
535
|
class LogLevelsEnum extends Number {
|
|
536
|
-
static TRACE = 5;
|
|
537
|
-
static DEBUG = 4;
|
|
538
|
-
static INFO = 3;
|
|
539
|
-
static WARN = 2;
|
|
540
|
-
static ERROR = 1;
|
|
541
|
-
static SILENT = 0;
|
|
536
|
+
static { this.TRACE = 5; }
|
|
537
|
+
static { this.DEBUG = 4; }
|
|
538
|
+
static { this.INFO = 3; }
|
|
539
|
+
static { this.WARN = 2; }
|
|
540
|
+
static { this.ERROR = 1; }
|
|
541
|
+
static { this.SILENT = 0; }
|
|
542
542
|
}
|
|
543
543
|
const logLevels = [
|
|
544
544
|
{ level: LogLevelsEnum.TRACE, name: 'TRACE' },
|
|
@@ -550,7 +550,6 @@ const logLevels = [
|
|
|
550
550
|
];
|
|
551
551
|
/* eslint-disable no-console */
|
|
552
552
|
class GenericLogger {
|
|
553
|
-
level;
|
|
554
553
|
constructor(logLevel) {
|
|
555
554
|
this.level = logLevels.find(({ name }) => name === logLevel)?.level || LogLevelsEnum.ERROR;
|
|
556
555
|
}
|
|
@@ -622,8 +621,6 @@ class GenericLogger {
|
|
|
622
621
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
623
622
|
*/
|
|
624
623
|
class PlaywrightBase {
|
|
625
|
-
page;
|
|
626
|
-
logger;
|
|
627
624
|
constructor(page) {
|
|
628
625
|
this.page = page;
|
|
629
626
|
this.logger = new GenericLogger(process.env.PLAYWRIGHT_CUSTOM_LOG_LEVEL);
|
|
@@ -654,10 +651,9 @@ class PlaywrightBase {
|
|
|
654
651
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
655
652
|
*/
|
|
656
653
|
class BaseComponent extends PlaywrightBase {
|
|
657
|
-
rootElement;
|
|
658
|
-
progressBar = this.page.locator('[role="progressbar"]');
|
|
659
654
|
constructor(page, rootElement) {
|
|
660
655
|
super(page);
|
|
656
|
+
this.progressBar = this.page.locator('[role="progressbar"]');
|
|
661
657
|
this.rootElement = rootElement;
|
|
662
658
|
}
|
|
663
659
|
/**
|
|
@@ -715,13 +711,13 @@ class BaseComponent extends PlaywrightBase {
|
|
|
715
711
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
716
712
|
*/
|
|
717
713
|
class SnackBarComponent extends BaseComponent {
|
|
718
|
-
static rootElement = 'adf-snackbar-content';
|
|
719
|
-
message = this.getChild('[data-automation-id="adf-snackbar-message-content"]').first();
|
|
720
|
-
actionButton = this.getChild('[data-automation-id="adf-snackbar-message-content-action-button"]');
|
|
721
|
-
closeIcon = this.getChild('.adf-snackbar-message-content-action-icon');
|
|
722
|
-
getByMessageLocator = (message) => this.getChild(`[data-automation-id='adf-snackbar-message-content']`, { hasText: message }).first();
|
|
714
|
+
static { this.rootElement = 'adf-snackbar-content'; }
|
|
723
715
|
constructor(page, rootElement = SnackBarComponent.rootElement) {
|
|
724
716
|
super(page, rootElement);
|
|
717
|
+
this.message = this.getChild('[data-automation-id="adf-snackbar-message-content"]').first();
|
|
718
|
+
this.actionButton = this.getChild('[data-automation-id="adf-snackbar-message-content-action-button"]');
|
|
719
|
+
this.closeIcon = this.getChild('.adf-snackbar-message-content-action-icon');
|
|
720
|
+
this.getByMessageLocator = (message) => this.getChild(`[data-automation-id='adf-snackbar-message-content']`, { hasText: message }).first();
|
|
725
721
|
}
|
|
726
722
|
async getSnackBarMessage() {
|
|
727
723
|
return this.message.innerText();
|
|
@@ -766,16 +762,16 @@ class SnackBarComponent extends BaseComponent {
|
|
|
766
762
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
767
763
|
*/
|
|
768
764
|
class MatMenuComponent extends BaseComponent {
|
|
769
|
-
static rootElement = '[role="menu"]';
|
|
765
|
+
static { this.rootElement = '[role="menu"]'; }
|
|
770
766
|
constructor(page) {
|
|
771
767
|
super(page, MatMenuComponent.rootElement);
|
|
768
|
+
this.createFolder = this.getChild('[id="app.create.folder"]');
|
|
769
|
+
this.createFolderFromTemplate = this.getChild('[id="app.create.folderFromTemplate"]');
|
|
770
|
+
this.createFileFromTemplate = this.getChild('[id="app.create.fileFromTemplate"]');
|
|
771
|
+
this.createLibrary = this.getChild('[id="app.create.library"]');
|
|
772
|
+
this.getButtonByText = (text) => this.getChild('button', { hasText: text });
|
|
773
|
+
this.getMenuItemFromHeaderMenu = (text) => this.page.getByRole('menuitem', { name: text, exact: true });
|
|
772
774
|
}
|
|
773
|
-
createFolder = this.getChild('[id="app.create.folder"]');
|
|
774
|
-
createFolderFromTemplate = this.getChild('[id="app.create.folderFromTemplate"]');
|
|
775
|
-
createFileFromTemplate = this.getChild('[id="app.create.fileFromTemplate"]');
|
|
776
|
-
createLibrary = this.getChild('[id="app.create.library"]');
|
|
777
|
-
getButtonByText = (text) => this.getChild('button', { hasText: text });
|
|
778
|
-
getMenuItemFromHeaderMenu = (text) => this.page.getByRole('menuitem', { name: text, exact: true });
|
|
779
775
|
async clickMenuItem(menuItem) {
|
|
780
776
|
const menuElement = this.getButtonByText(menuItem);
|
|
781
777
|
await menuElement.click();
|
|
@@ -834,20 +830,20 @@ var PaginationActionsType;
|
|
|
834
830
|
PaginationActionsType["NextPageSelector"] = "Next page button";
|
|
835
831
|
})(PaginationActionsType || (PaginationActionsType = {}));
|
|
836
832
|
class PaginationComponent extends BaseComponent {
|
|
837
|
-
static rootElement = 'adf-pagination';
|
|
833
|
+
static { this.rootElement = 'adf-pagination'; }
|
|
838
834
|
constructor(page) {
|
|
839
835
|
super(page, PaginationComponent.rootElement);
|
|
836
|
+
this.range = this.getChild('.adf-pagination__range');
|
|
837
|
+
this.maxItems = this.getChild('.adf-pagination__max-items');
|
|
838
|
+
this.currentPage = this.getChild('.adf-pagination__current-page');
|
|
839
|
+
this.totalPages = this.getChild('.adf-pagination__total-pages');
|
|
840
|
+
this.previousButton = this.getChild('.adf-pagination__previous-button');
|
|
841
|
+
this.nextButton = this.getChild('.adf-pagination__next-button');
|
|
842
|
+
this.maxItemsButton = this.getChild('.adf-pagination__max-items + button[mat-icon-button]');
|
|
843
|
+
this.currentPageLocator = this.getChild('.adf-pagination__current-page');
|
|
844
|
+
this.totalPageLocator = this.getChild('.adf-pagination__total-pages');
|
|
845
|
+
this.getArrowLocatorFor = (action) => this.getChild(`[aria-label="${action}"]`);
|
|
840
846
|
}
|
|
841
|
-
range = this.getChild('.adf-pagination__range');
|
|
842
|
-
maxItems = this.getChild('.adf-pagination__max-items');
|
|
843
|
-
currentPage = this.getChild('.adf-pagination__current-page');
|
|
844
|
-
totalPages = this.getChild('.adf-pagination__total-pages');
|
|
845
|
-
previousButton = this.getChild('.adf-pagination__previous-button');
|
|
846
|
-
nextButton = this.getChild('.adf-pagination__next-button');
|
|
847
|
-
maxItemsButton = this.getChild('.adf-pagination__max-items + button[mat-icon-button]');
|
|
848
|
-
currentPageLocator = this.getChild('.adf-pagination__current-page');
|
|
849
|
-
totalPageLocator = this.getChild('.adf-pagination__total-pages');
|
|
850
|
-
getArrowLocatorFor = (action) => this.getChild(`[aria-label="${action}"]`);
|
|
851
847
|
async getRange() {
|
|
852
848
|
return this.range.innerText();
|
|
853
849
|
}
|
|
@@ -978,67 +974,67 @@ class PaginationComponent extends BaseComponent {
|
|
|
978
974
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
979
975
|
*/
|
|
980
976
|
class DataTableComponent extends BaseComponent {
|
|
981
|
-
static rootElement = 'adf-datatable';
|
|
982
|
-
contextMenuActions = new MatMenuComponent(this.page);
|
|
977
|
+
static { this.rootElement = 'adf-datatable'; }
|
|
983
978
|
constructor(page, rootElement = DataTableComponent.rootElement) {
|
|
984
979
|
super(page, rootElement);
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
980
|
+
this.contextMenuActions = new MatMenuComponent(this.page);
|
|
981
|
+
this.pagination = new PaginationComponent(this.page);
|
|
982
|
+
this.getEmptyFolderLocator = this.getChild('.adf-empty-folder');
|
|
983
|
+
this.getSelectedRow = this.getChild('.adf-datatable-row.adf-is-selected');
|
|
984
|
+
this.sortedColumnHeader = this.getChild(`.adf-datatable__header--sorted-asc .adf-datatable-cell-header-content .adf-datatable-cell-value,
|
|
990
985
|
.adf-datatable__header--sorted-desc .adf-datatable-cell-header-content .adf-datatable-cell-value`);
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
986
|
+
this.columnHeaders = this.getChild('.adf-datatable-row .adf-datatable-cell-header .adf-datatable-cell-value');
|
|
987
|
+
this.emptyList = this.getChild('div.adf-no-content-container');
|
|
988
|
+
this.emptyListTitle = this.getChild('.adf-empty-content__title');
|
|
989
|
+
this.emptyListSubtitle = this.getChild('.adf-empty-content__subtitle');
|
|
990
|
+
this.emptySearchText = this.getChild('.empty-search__text');
|
|
991
|
+
this.emptyListTest = this.getChild('adf-custom-empty-content-template');
|
|
992
|
+
this.sitesVisibility = this.getChild('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Visibility"]');
|
|
993
|
+
this.sitesName = this.getChild('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Name"]');
|
|
994
|
+
this.sitesRole = this.getChild('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="My Role"]');
|
|
995
|
+
this.lockOwner = '.aca-locked-by--name';
|
|
996
|
+
this.highlightedText = '.aca-highlight';
|
|
997
|
+
this.searchFileName = '.search-file-name';
|
|
998
|
+
this.searchFileDescription = '[data-automation-id="search-results-entry-description"]';
|
|
999
|
+
this.searchFileContent = '.aca-result-content';
|
|
1000
|
+
/** Locator for row (or rows) */
|
|
1001
|
+
this.getRowLocator = this.page.getByRole('rowgroup').nth(1).locator('adf-datatable-row');
|
|
1002
|
+
/** Locator to get "No results found" message */
|
|
1003
|
+
this.getNoResultsFoundMessage = this.getChild('adf-custom-empty-content-template', { hasText: 'No results found' });
|
|
1004
|
+
/**
|
|
1005
|
+
* Method used in cases where we want to check that some record is visible in the datatable. It will consider whole row
|
|
1006
|
+
*
|
|
1007
|
+
* @returns reference to cell element which contains text.
|
|
1008
|
+
*/
|
|
1009
|
+
this.getRowByName = (name) => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
|
1010
|
+
/**
|
|
1011
|
+
* Method used in cases where we want to retrieve a row from the datatable based on its numerical order within the array.
|
|
1012
|
+
*
|
|
1013
|
+
* @returns reference to cell element which contains text.
|
|
1014
|
+
*/
|
|
1015
|
+
this.getNthRow = (orderNum) => this.getRowLocator.nth(orderNum);
|
|
1016
|
+
/**
|
|
1017
|
+
* Method used in cases where user have possibility to navigate "inside" the element (it's clickable and has link attribute).
|
|
1018
|
+
* Perform action .click() to navigate inside it
|
|
1019
|
+
*
|
|
1020
|
+
* @returns reference to cell element which contains link.
|
|
1021
|
+
*/
|
|
1022
|
+
this.getCellLinkByName = (name) => this.getChild('.adf-cell-value span[role="link"]', { hasText: name });
|
|
1023
|
+
/**
|
|
1024
|
+
* Method used in cases where you want to get some specific cell (by column name) for row which contains some name/title/etc.
|
|
1025
|
+
*
|
|
1026
|
+
* @returns reference to cell element
|
|
1027
|
+
*/
|
|
1028
|
+
this.getCellByColumnNameAndRowItem = (item, columnName) => this.getRowByName(item).locator(`[title="${columnName}"]`);
|
|
1029
|
+
/**
|
|
1030
|
+
* Method used in cases where we want to get the checkbox for row element
|
|
1031
|
+
*
|
|
1032
|
+
* @returns reference to checkbox placed in row localized by the name
|
|
1033
|
+
*/
|
|
1034
|
+
this.getCheckboxForElement = (item) => this.getRowByName(item).locator('[type="checkbox"]');
|
|
1035
|
+
this.getColumnValuesByName = (name) => this.getChild(`div[title="${name}"] span`);
|
|
1036
|
+
this.getColumnHeaderByName = (headerTitle) => this.getChild('.adf-datatable-row .adf-datatable-cell-header .adf-datatable-cell-value', { hasText: headerTitle });
|
|
1037
|
+
}
|
|
1042
1038
|
async sortBy(label, order) {
|
|
1043
1039
|
const sortColumn = await this.getSortedColumnHeaderText();
|
|
1044
1040
|
let sortOrder = await this.getSortingOrder();
|
|
@@ -1276,18 +1272,18 @@ class DataTableComponent extends BaseComponent {
|
|
|
1276
1272
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1277
1273
|
*/
|
|
1278
1274
|
class AdfFolderDialogComponent extends BaseComponent {
|
|
1279
|
-
static rootElement = 'adf-folder-dialog';
|
|
1280
|
-
folderNameInputLocator = this.getChild('[id="adf-folder-name-input"]');
|
|
1281
|
-
folderNameInputHint = this.getChild('[aria-atomic="true"] span');
|
|
1282
|
-
folderTitleInput = this.getChild('[id="adf-folder-title-input"]');
|
|
1283
|
-
folderDescriptionInput = this.getChild('[id="adf-folder-description-input"]');
|
|
1284
|
-
createButton = this.getChild('[id="adf-folder-create-button"]');
|
|
1285
|
-
cancelButton = this.getChild('[id="adf-folder-cancel-button"]');
|
|
1275
|
+
static { this.rootElement = 'adf-folder-dialog'; }
|
|
1286
1276
|
constructor(page) {
|
|
1287
1277
|
super(page, AdfFolderDialogComponent.rootElement);
|
|
1278
|
+
this.folderNameInputLocator = this.getChild('[id="adf-folder-name-input"]');
|
|
1279
|
+
this.folderNameInputHint = this.getChild('[aria-atomic="true"] span');
|
|
1280
|
+
this.folderTitleInput = this.getChild('[id="adf-folder-title-input"]');
|
|
1281
|
+
this.folderDescriptionInput = this.getChild('[id="adf-folder-description-input"]');
|
|
1282
|
+
this.createButton = this.getChild('[id="adf-folder-create-button"]');
|
|
1283
|
+
this.cancelButton = this.getChild('[id="adf-folder-cancel-button"]');
|
|
1284
|
+
this.getLabelText = (text) => this.getChild('label', { hasText: text });
|
|
1285
|
+
this.getRequiredMarker = (text) => this.getLabelText(text).locator('span');
|
|
1288
1286
|
}
|
|
1289
|
-
getLabelText = (text) => this.getChild('label', { hasText: text });
|
|
1290
|
-
getRequiredMarker = (text) => this.getLabelText(text).locator('span');
|
|
1291
1287
|
/**
|
|
1292
1288
|
* This method is used when we want to fill in Create new Folder Dialog and choose Create button
|
|
1293
1289
|
*
|
|
@@ -1331,16 +1327,16 @@ class AdfFolderDialogComponent extends BaseComponent {
|
|
|
1331
1327
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1332
1328
|
*/
|
|
1333
1329
|
class AdfLibraryDialogComponent extends BaseComponent {
|
|
1334
|
-
static rootElement = 'adf-library-dialog';
|
|
1335
|
-
createButton = this.getChild('[data-automation-id="create-library-id"]');
|
|
1336
|
-
cancelButton = this.getChild('[data-automation-id="cancel-library-id"]');
|
|
1330
|
+
static { this.rootElement = 'adf-library-dialog'; }
|
|
1337
1331
|
constructor(page) {
|
|
1338
1332
|
super(page, AdfLibraryDialogComponent.rootElement);
|
|
1333
|
+
this.createButton = this.getChild('[data-automation-id="create-library-id"]');
|
|
1334
|
+
this.cancelButton = this.getChild('[data-automation-id="cancel-library-id"]');
|
|
1335
|
+
this.getLabelText = (text) => this.getChild('label', { hasText: text });
|
|
1336
|
+
this.getRequiredMarker = (text) => this.getLabelText(text).locator('span');
|
|
1337
|
+
this.getDialogTitle = (text) => this.getChild('h2', { hasText: text });
|
|
1338
|
+
this.getErrorByText = (text) => this.getChild('.adf-library-dialog-form-field').getByText(text);
|
|
1339
1339
|
}
|
|
1340
|
-
getLabelText = (text) => this.getChild('label', { hasText: text });
|
|
1341
|
-
getRequiredMarker = (text) => this.getLabelText(text).locator('span');
|
|
1342
|
-
getDialogTitle = (text) => this.getChild('h2', { hasText: text });
|
|
1343
|
-
getErrorByText = (text) => this.getChild('.adf-library-dialog-form-field').getByText(text);
|
|
1344
1340
|
/**
|
|
1345
1341
|
* This method is used when we want to fill in Create Library Dialog and choose Create button
|
|
1346
1342
|
*
|
|
@@ -1392,13 +1388,13 @@ class AdfLibraryDialogComponent extends BaseComponent {
|
|
|
1392
1388
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1393
1389
|
*/
|
|
1394
1390
|
class PasswordOverlayDialogComponent extends BaseComponent {
|
|
1395
|
-
static rootElement = '.cdk-overlay-pane';
|
|
1396
|
-
closeButton = this.getChild('[data-automation-id="adf-password-dialog-close"]');
|
|
1397
|
-
submitButton = this.getChild('[data-automation-id="adf-password-dialog-submit"]');
|
|
1398
|
-
passwordInput = this.getChild('[data-automation-id="adf-password-dialog-input"]');
|
|
1399
|
-
errorMessage = this.getChild('[data-automation-id="adf-password-dialog-error"]');
|
|
1391
|
+
static { this.rootElement = '.cdk-overlay-pane'; }
|
|
1400
1392
|
constructor(page, rootElement = PasswordOverlayDialogComponent.rootElement) {
|
|
1401
1393
|
super(page, rootElement);
|
|
1394
|
+
this.closeButton = this.getChild('[data-automation-id="adf-password-dialog-close"]');
|
|
1395
|
+
this.submitButton = this.getChild('[data-automation-id="adf-password-dialog-submit"]');
|
|
1396
|
+
this.passwordInput = this.getChild('[data-automation-id="adf-password-dialog-input"]');
|
|
1397
|
+
this.errorMessage = this.getChild('[data-automation-id="adf-password-dialog-error"]');
|
|
1402
1398
|
}
|
|
1403
1399
|
async waitForDialogToOpen() {
|
|
1404
1400
|
await this.spinnerWaitForReload();
|
|
@@ -1457,16 +1453,16 @@ class PasswordOverlayDialogComponent extends BaseComponent {
|
|
|
1457
1453
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1458
1454
|
*/
|
|
1459
1455
|
class ViewerOverlayDialogComponent extends BaseComponent {
|
|
1460
|
-
static rootElement = '.cdk-overlay-pane';
|
|
1461
|
-
copyDialog = this.getChild('[data-automation-id="content-node-selector-title"]');
|
|
1462
|
-
copyMenuButton = this.getChild('[id="app.viewer.copy"]');
|
|
1463
|
-
deleteMenuButton = this.getChild('[id="app.viewer.delete"]');
|
|
1464
|
-
favoriteMenuButton = this.getChild('[id="app.viewer.favorite.add"]');
|
|
1465
|
-
removeFavoriteMenuButton = this.getChild('[id="app.viewer.favorite.remove"]');
|
|
1466
|
-
shareDialogTitle = this.getChild('[data-automation-id="adf-share-dialog-title"]');
|
|
1467
|
-
shareDialogClose = this.getChild('[data-automation-id="adf-share-dialog-close"]');
|
|
1456
|
+
static { this.rootElement = '.cdk-overlay-pane'; }
|
|
1468
1457
|
constructor(page, rootElement = ViewerOverlayDialogComponent.rootElement) {
|
|
1469
1458
|
super(page, rootElement);
|
|
1459
|
+
this.copyDialog = this.getChild('[data-automation-id="content-node-selector-title"]');
|
|
1460
|
+
this.copyMenuButton = this.getChild('[id="app.viewer.copy"]');
|
|
1461
|
+
this.deleteMenuButton = this.getChild('[id="app.viewer.delete"]');
|
|
1462
|
+
this.favoriteMenuButton = this.getChild('[id="app.viewer.favorite.add"]');
|
|
1463
|
+
this.removeFavoriteMenuButton = this.getChild('[id="app.viewer.favorite.remove"]');
|
|
1464
|
+
this.shareDialogTitle = this.getChild('[data-automation-id="adf-share-dialog-title"]');
|
|
1465
|
+
this.shareDialogClose = this.getChild('[data-automation-id="adf-share-dialog-close"]');
|
|
1470
1466
|
}
|
|
1471
1467
|
async isCopyDialogOpen() {
|
|
1472
1468
|
await this.copyDialog.waitFor({ state: 'attached', timeout: timeouts.medium });
|
|
@@ -1506,19 +1502,19 @@ class ViewerOverlayDialogComponent extends BaseComponent {
|
|
|
1506
1502
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1507
1503
|
*/
|
|
1508
1504
|
class ContentNodeSelectorDialog extends BaseComponent {
|
|
1509
|
-
static rootElement = 'adf-content-node-selector';
|
|
1510
|
-
selectedRow = this.getChild('.adf-is-selected');
|
|
1511
|
-
getRowByName = (name) => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
|
1512
|
-
cancelButton = this.getChild('[data-automation-id="content-node-selector-actions-cancel"]');
|
|
1513
|
-
actionButton = this.getChild('[data-automation-id="content-node-selector-actions-choose"]');
|
|
1514
|
-
locationDropDown = this.getChild('[id="site-dropdown-container"] .adf-sites-dropdown-form-field');
|
|
1515
|
-
getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
1516
|
-
getDialogTitle = (text) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
|
|
1517
|
-
getBreadcrumb = (text) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
|
|
1518
|
-
getFolderIcon = this.getChild('[data-automation-id="dropdown-breadcrumb-trigger"]');
|
|
1519
|
-
loadMoreButton = this.getChild('[data-automation-id="adf-infinite-pagination-button"]');
|
|
1505
|
+
static { this.rootElement = 'adf-content-node-selector'; }
|
|
1520
1506
|
constructor(page) {
|
|
1521
1507
|
super(page, ContentNodeSelectorDialog.rootElement);
|
|
1508
|
+
this.selectedRow = this.getChild('.adf-is-selected');
|
|
1509
|
+
this.getRowByName = (name) => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
|
1510
|
+
this.cancelButton = this.getChild('[data-automation-id="content-node-selector-actions-cancel"]');
|
|
1511
|
+
this.actionButton = this.getChild('[data-automation-id="content-node-selector-actions-choose"]');
|
|
1512
|
+
this.locationDropDown = this.getChild('[id="site-dropdown-container"] .adf-sites-dropdown-form-field');
|
|
1513
|
+
this.getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
1514
|
+
this.getDialogTitle = (text) => this.getChild('[data-automation-id="content-node-selector-title"]', { hasText: text });
|
|
1515
|
+
this.getBreadcrumb = (text) => this.getChild('[data-automation-id="current-folder"]', { hasText: text });
|
|
1516
|
+
this.getFolderIcon = this.getChild('[data-automation-id="dropdown-breadcrumb-trigger"]');
|
|
1517
|
+
this.loadMoreButton = this.getChild('[data-automation-id="adf-infinite-pagination-button"]');
|
|
1522
1518
|
}
|
|
1523
1519
|
async loadMoreNodes() {
|
|
1524
1520
|
await this.spinnerWaitForReload();
|
|
@@ -1571,15 +1567,15 @@ class ContentNodeSelectorDialog extends BaseComponent {
|
|
|
1571
1567
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1572
1568
|
*/
|
|
1573
1569
|
class CreateFromTemplateDialogComponent extends BaseComponent {
|
|
1574
|
-
static rootElement = '.aca-create-from-template-dialog';
|
|
1570
|
+
static { this.rootElement = '.aca-create-from-template-dialog'; }
|
|
1575
1571
|
constructor(page) {
|
|
1576
1572
|
super(page, CreateFromTemplateDialogComponent.rootElement);
|
|
1573
|
+
this.cancelButton = this.getChild('[data-automation-id="create-from-template-dialog-cancel-button"]');
|
|
1574
|
+
this.createButton = this.getChild('[data-automation-id="create-from-template-dialog-create-button"]');
|
|
1575
|
+
this.getDialogTitle = (text) => this.getChild('[data-automation-id="create-from-template-title"]', { hasText: text });
|
|
1576
|
+
this.getDialogLabel = (text) => this.getChild('label', { hasText: text });
|
|
1577
|
+
this.getErrorByText = (text) => this.page.locator('[data-automation-id="create-from-template-field-error"]', { hasText: text });
|
|
1577
1578
|
}
|
|
1578
|
-
cancelButton = this.getChild('[data-automation-id="create-from-template-dialog-cancel-button"]');
|
|
1579
|
-
createButton = this.getChild('[data-automation-id="create-from-template-dialog-create-button"]');
|
|
1580
|
-
getDialogTitle = (text) => this.getChild('[data-automation-id="create-from-template-title"]', { hasText: text });
|
|
1581
|
-
getDialogLabel = (text) => this.getChild('label', { hasText: text });
|
|
1582
|
-
getErrorByText = (text) => this.page.locator('[data-automation-id="create-from-template-field-error"]', { hasText: text });
|
|
1583
1579
|
async isErrorMessageDisplayed(errorText) {
|
|
1584
1580
|
await this.getErrorByText(errorText).waitFor({ state: 'visible', timeout: timeouts.large });
|
|
1585
1581
|
return this.getErrorByText(errorText).isVisible();
|
|
@@ -1623,14 +1619,14 @@ class CreateFromTemplateDialogComponent extends BaseComponent {
|
|
|
1623
1619
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1624
1620
|
*/
|
|
1625
1621
|
class AdfConfirmDialogComponent extends BaseComponent {
|
|
1626
|
-
static rootElement = 'adf-confirm-dialog';
|
|
1622
|
+
static { this.rootElement = 'adf-confirm-dialog'; }
|
|
1627
1623
|
constructor(page) {
|
|
1628
1624
|
super(page, AdfConfirmDialogComponent.rootElement);
|
|
1625
|
+
this.getDialogTitle = (text) => this.getChild('[data-automation-id="adf-confirm-dialog-title"]', { hasText: text });
|
|
1626
|
+
this.getDialogContent = (text) => this.getChild('[data-automation-id="adf-confirm-dialog-base-message"]', { hasText: text });
|
|
1627
|
+
this.okButton = this.getChild('[data-automation-id="adf-confirm-dialog-confirmation"]');
|
|
1628
|
+
this.cancelButton = this.getChild('[data-automation-id="adf-confirm-dialog-reject"]');
|
|
1629
1629
|
}
|
|
1630
|
-
getDialogTitle = (text) => this.getChild('[data-automation-id="adf-confirm-dialog-title"]', { hasText: text });
|
|
1631
|
-
getDialogContent = (text) => this.getChild('[data-automation-id="adf-confirm-dialog-base-message"]', { hasText: text });
|
|
1632
|
-
okButton = this.getChild('[data-automation-id="adf-confirm-dialog-confirmation"]');
|
|
1633
|
-
cancelButton = this.getChild('[data-automation-id="adf-confirm-dialog-reject"]');
|
|
1634
1630
|
}
|
|
1635
1631
|
|
|
1636
1632
|
/*!
|
|
@@ -1657,11 +1653,11 @@ class AdfConfirmDialogComponent extends BaseComponent {
|
|
|
1657
1653
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1658
1654
|
*/
|
|
1659
1655
|
class DateTimePicker extends BaseComponent {
|
|
1660
|
-
static rootElement = '[role="dialog"]';
|
|
1661
|
-
dayPicker = this.getChild('[role="grid"]');
|
|
1662
|
-
nextMonthBtn = this.getChild('[aria-label="Next month"]');
|
|
1656
|
+
static { this.rootElement = '[role="dialog"]'; }
|
|
1663
1657
|
constructor(page) {
|
|
1664
1658
|
super(page, DateTimePicker.rootElement);
|
|
1659
|
+
this.dayPicker = this.getChild('[role="grid"]');
|
|
1660
|
+
this.nextMonthBtn = this.getChild('[aria-label="Next month"]');
|
|
1665
1661
|
}
|
|
1666
1662
|
async isCalendarOpen() {
|
|
1667
1663
|
const element = this.page.locator(DateTimePicker.rootElement);
|
|
@@ -1706,22 +1702,22 @@ class DateTimePicker extends BaseComponent {
|
|
|
1706
1702
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1707
1703
|
*/
|
|
1708
1704
|
class ShareDialogComponent extends BaseComponent {
|
|
1709
|
-
static rootElement = 'adf-share-dialog';
|
|
1705
|
+
static { this.rootElement = 'adf-share-dialog'; }
|
|
1710
1706
|
constructor(page) {
|
|
1711
1707
|
super(page, ShareDialogComponent.rootElement);
|
|
1708
|
+
this.closeButton = this.getChild('[data-automation-id="adf-share-dialog-close"]');
|
|
1709
|
+
this.dialogTitle = this.getChild('[data-automation-id="adf-share-dialog-title"]');
|
|
1710
|
+
this.infoText = this.getChild('.adf-share-link__info').first();
|
|
1711
|
+
this.shareToggle = this.getChild(`[data-automation-id='adf-share-toggle']`);
|
|
1712
|
+
this.url = this.getChild(`[data-automation-id='adf-share-link']`);
|
|
1713
|
+
this.urlAction = this.getChild('.adf-input-action');
|
|
1714
|
+
this.expireToggle = this.getChild(`[data-automation-id='adf-expire-toggle']`);
|
|
1715
|
+
this.expireInput = this.getChild('input[formcontrolname="time"]');
|
|
1716
|
+
this.datetimePickerButton = this.getChild('[data-automation-id="adf-content-share-expiration-field"] button');
|
|
1717
|
+
this.dateErrorText = this.getChild('[data-automation-id="adf-share-link-input-warning"]');
|
|
1718
|
+
this.clockIcon = this.getChild('[adf-icon="timer"]');
|
|
1719
|
+
this.dateTimePicker = new DateTimePicker(this.page);
|
|
1712
1720
|
}
|
|
1713
|
-
closeButton = this.getChild('[data-automation-id="adf-share-dialog-close"]');
|
|
1714
|
-
dialogTitle = this.getChild('[data-automation-id="adf-share-dialog-title"]');
|
|
1715
|
-
infoText = this.getChild('.adf-share-link__info').first();
|
|
1716
|
-
shareToggle = this.getChild(`[data-automation-id='adf-share-toggle']`);
|
|
1717
|
-
url = this.getChild(`[data-automation-id='adf-share-link']`);
|
|
1718
|
-
urlAction = this.getChild('.adf-input-action');
|
|
1719
|
-
expireToggle = this.getChild(`[data-automation-id='adf-expire-toggle']`);
|
|
1720
|
-
expireInput = this.getChild('input[formcontrolname="time"]');
|
|
1721
|
-
datetimePickerButton = this.getChild('[data-automation-id="adf-content-share-expiration-field"] button');
|
|
1722
|
-
dateErrorText = this.getChild('[data-automation-id="adf-share-link-input-warning"]');
|
|
1723
|
-
clockIcon = this.getChild('[adf-icon="timer"]');
|
|
1724
|
-
dateTimePicker = new DateTimePicker(this.page);
|
|
1725
1721
|
async getLabels() {
|
|
1726
1722
|
return this.page.$$eval('.adf-share-link__label', (elements) => elements.map((element) => element.textContent));
|
|
1727
1723
|
}
|
|
@@ -1786,14 +1782,14 @@ class ShareDialogComponent extends BaseComponent {
|
|
|
1786
1782
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1787
1783
|
*/
|
|
1788
1784
|
class UploadNewVersionDialog extends BaseComponent {
|
|
1789
|
-
static rootElement = 'adf-new-version-uploader-dialog';
|
|
1790
|
-
cancelButton = this.getChild('#adf-new-version-cancel');
|
|
1791
|
-
uploadButton = this.getChild('[data-automation-id="adf-new-version-file-upload"]');
|
|
1792
|
-
majorOption = this.getChild('#adf-new-version-major');
|
|
1793
|
-
description = this.getChild('#adf-new-version-text-area');
|
|
1794
|
-
title = this.getChild(' [data-automation-id="new-version-uploader-dialog-title"]');
|
|
1785
|
+
static { this.rootElement = 'adf-new-version-uploader-dialog'; }
|
|
1795
1786
|
constructor(page) {
|
|
1796
1787
|
super(page, UploadNewVersionDialog.rootElement);
|
|
1788
|
+
this.cancelButton = this.getChild('#adf-new-version-cancel');
|
|
1789
|
+
this.uploadButton = this.getChild('[data-automation-id="adf-new-version-file-upload"]');
|
|
1790
|
+
this.majorOption = this.getChild('#adf-new-version-major');
|
|
1791
|
+
this.description = this.getChild('#adf-new-version-text-area');
|
|
1792
|
+
this.title = this.getChild(' [data-automation-id="new-version-uploader-dialog-title"]');
|
|
1797
1793
|
}
|
|
1798
1794
|
}
|
|
1799
1795
|
|
|
@@ -1821,7 +1817,7 @@ class UploadNewVersionDialog extends BaseComponent {
|
|
|
1821
1817
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1822
1818
|
*/
|
|
1823
1819
|
class ManageVersionsDialog extends BaseComponent {
|
|
1824
|
-
static rootElement = '.adf-new-version-uploader-dialog';
|
|
1820
|
+
static { this.rootElement = '.adf-new-version-uploader-dialog'; }
|
|
1825
1821
|
async viewFileVersion(version) {
|
|
1826
1822
|
const versionActionsButton = this.getChild(`[id="adf-version-list-action-menu-button-${version}"]`);
|
|
1827
1823
|
await versionActionsButton.click();
|
|
@@ -1855,13 +1851,13 @@ class ManageVersionsDialog extends BaseComponent {
|
|
|
1855
1851
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1856
1852
|
*/
|
|
1857
1853
|
class UploadDialog extends BaseComponent {
|
|
1858
|
-
static rootElement = 'aca-upload-files-dialog';
|
|
1859
|
-
uploadDialogContent = this.getChild('.adf-upload-dialog__content');
|
|
1860
|
-
closeButton = this.getChild('#adf-upload-dialog-close');
|
|
1861
|
-
minimizeButton = this.getChild('[data-automation-id="adf-upload-dialog__toggle-minimize"]');
|
|
1862
|
-
uploadDialogMinimized = this.getChild('.adf-upload-dialog--minimized');
|
|
1854
|
+
static { this.rootElement = 'aca-upload-files-dialog'; }
|
|
1863
1855
|
constructor(page) {
|
|
1864
1856
|
super(page, UploadDialog.rootElement);
|
|
1857
|
+
this.uploadDialogContent = this.getChild('.adf-upload-dialog__content');
|
|
1858
|
+
this.closeButton = this.getChild('#adf-upload-dialog-close');
|
|
1859
|
+
this.minimizeButton = this.getChild('[data-automation-id="adf-upload-dialog__toggle-minimize"]');
|
|
1860
|
+
this.uploadDialogMinimized = this.getChild('.adf-upload-dialog--minimized');
|
|
1865
1861
|
}
|
|
1866
1862
|
}
|
|
1867
1863
|
|
|
@@ -1889,14 +1885,14 @@ class UploadDialog extends BaseComponent {
|
|
|
1889
1885
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1890
1886
|
*/
|
|
1891
1887
|
class AdfDeleteTrashComponent extends BaseComponent {
|
|
1892
|
-
static rootElement = 'adf-confirm-dialog';
|
|
1888
|
+
static { this.rootElement = 'adf-confirm-dialog'; }
|
|
1893
1889
|
constructor(page) {
|
|
1894
1890
|
super(page, AdfDeleteTrashComponent.rootElement);
|
|
1891
|
+
this.dialogTitle = this.getChild('[data-automation-id="adf-confirm-dialog-title"]');
|
|
1892
|
+
this.dialogDescription = this.getChild('[data-automation-id="adf-confirm-dialog-base-message"]');
|
|
1893
|
+
this.deleteButton = this.getChild('[id="adf-confirm-accept"]');
|
|
1894
|
+
this.keepButton = this.getChild('[id="adf-confirm-cancel"]');
|
|
1895
1895
|
}
|
|
1896
|
-
dialogTitle = this.getChild('[data-automation-id="adf-confirm-dialog-title"]');
|
|
1897
|
-
dialogDescription = this.getChild('[data-automation-id="adf-confirm-dialog-base-message"]');
|
|
1898
|
-
deleteButton = this.getChild('[id="adf-confirm-accept"]');
|
|
1899
|
-
keepButton = this.getChild('[id="adf-confirm-cancel"]');
|
|
1900
1896
|
async waitForDialog() {
|
|
1901
1897
|
await this.dialogTitle.waitFor();
|
|
1902
1898
|
}
|
|
@@ -1941,14 +1937,14 @@ class AdfDeleteTrashComponent extends BaseComponent {
|
|
|
1941
1937
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1942
1938
|
*/
|
|
1943
1939
|
class LinkRulesDialog extends BaseComponent {
|
|
1944
|
-
static rootElement = 'aca-rule-set-picker';
|
|
1945
|
-
getRowByName = (name) => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
|
1946
|
-
selectFolderButton = this.getChild('button', { hasText: ' Select folder ' });
|
|
1947
|
-
getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
1948
|
-
getFolderIcon = this.getChild('.adf-dropdown-breadcrumb-icon', { hasText: 'folder' });
|
|
1949
|
-
getLibraryIcon = this.getChild('.adf-empty-content__icon', { hasText: 'library_books' });
|
|
1940
|
+
static { this.rootElement = 'aca-rule-set-picker'; }
|
|
1950
1941
|
constructor(page) {
|
|
1951
1942
|
super(page, LinkRulesDialog.rootElement);
|
|
1943
|
+
this.getRowByName = (name) => this.getChild(`adf-datatable-row`, { hasText: name.toString() });
|
|
1944
|
+
this.selectFolderButton = this.getChild('button', { hasText: ' Select folder ' });
|
|
1945
|
+
this.getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
1946
|
+
this.getFolderIcon = this.getChild('.adf-dropdown-breadcrumb-icon', { hasText: 'folder' });
|
|
1947
|
+
this.getLibraryIcon = this.getChild('.adf-empty-content__icon', { hasText: 'library_books' });
|
|
1952
1948
|
}
|
|
1953
1949
|
async selectDestination(folderName) {
|
|
1954
1950
|
const row = this.getRowByName(folderName);
|
|
@@ -1992,16 +1988,16 @@ class LinkRulesDialog extends BaseComponent {
|
|
|
1992
1988
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1993
1989
|
*/
|
|
1994
1990
|
class EditDialog extends BaseComponent {
|
|
1995
|
-
static rootElement = 'adf-folder-dialog';
|
|
1996
|
-
editDialog = this.page.locator(EditDialog.rootElement);
|
|
1997
|
-
titleInput = this.getChild('[data-automation-id="adf-folder-dialog-title"]');
|
|
1998
|
-
cancelButton = this.getChild('#adf-folder-cancel-button');
|
|
1999
|
-
updateButton = this.getChild('#adf-folder-create-button');
|
|
2000
|
-
descriptionInput = this.getChild('#adf-folder-description-input');
|
|
2001
|
-
nameInput = this.getChild('#adf-folder-name-input');
|
|
2002
|
-
fieldHint = this.getChild('[aria-atomic="true"] span');
|
|
1991
|
+
static { this.rootElement = 'adf-folder-dialog'; }
|
|
2003
1992
|
constructor(page) {
|
|
2004
1993
|
super(page, EditDialog.rootElement);
|
|
1994
|
+
this.editDialog = this.page.locator(EditDialog.rootElement);
|
|
1995
|
+
this.titleInput = this.getChild('[data-automation-id="adf-folder-dialog-title"]');
|
|
1996
|
+
this.cancelButton = this.getChild('#adf-folder-cancel-button');
|
|
1997
|
+
this.updateButton = this.getChild('#adf-folder-create-button');
|
|
1998
|
+
this.descriptionInput = this.getChild('#adf-folder-description-input');
|
|
1999
|
+
this.nameInput = this.getChild('#adf-folder-name-input');
|
|
2000
|
+
this.fieldHint = this.getChild('[aria-atomic="true"] span');
|
|
2005
2001
|
}
|
|
2006
2002
|
}
|
|
2007
2003
|
|
|
@@ -2029,17 +2025,17 @@ class EditDialog extends BaseComponent {
|
|
|
2029
2025
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2030
2026
|
*/
|
|
2031
2027
|
class FolderInformationDialogComponent extends BaseComponent {
|
|
2032
|
-
static rootElement = '[data-automation-id="adf-dialog-container"]';
|
|
2028
|
+
static { this.rootElement = '[data-automation-id="adf-dialog-container"]'; }
|
|
2033
2029
|
constructor(page) {
|
|
2034
2030
|
super(page, FolderInformationDialogComponent.rootElement);
|
|
2031
|
+
this.folderName = this.getChild('.aca-node-info-header');
|
|
2032
|
+
this.doneButton = this.getChild('[data-automation-id="adf-dialog-actions-confirm"]');
|
|
2033
|
+
this.folderNumberOfFiles = this.getChild('[data-automation-id="node-info-number-of-files"]');
|
|
2034
|
+
this.folderSize = this.getChild('[data-automation-id="node-info-size"]');
|
|
2035
|
+
this.folderLocation = this.getChild('[data-automation-id="node-info-location"]');
|
|
2036
|
+
this.folderCreationDate = this.getChild('[data-automation-id="node-info-creation-date"]');
|
|
2037
|
+
this.folderModifiedDate = this.getChild('[data-automation-id="node-info-modify-date"]');
|
|
2035
2038
|
}
|
|
2036
|
-
folderName = this.getChild('.aca-node-info-header');
|
|
2037
|
-
doneButton = this.getChild('[data-automation-id="adf-dialog-actions-confirm"]');
|
|
2038
|
-
folderNumberOfFiles = this.getChild('[data-automation-id="node-info-number-of-files"]');
|
|
2039
|
-
folderSize = this.getChild('[data-automation-id="node-info-size"]');
|
|
2040
|
-
folderLocation = this.getChild('[data-automation-id="node-info-location"]');
|
|
2041
|
-
folderCreationDate = this.getChild('[data-automation-id="node-info-creation-date"]');
|
|
2042
|
-
folderModifiedDate = this.getChild('[data-automation-id="node-info-modify-date"]');
|
|
2043
2039
|
async getFolderSizeNumber() {
|
|
2044
2040
|
const textContent = await this.folderSize.textContent();
|
|
2045
2041
|
if (!textContent) {
|
|
@@ -2097,27 +2093,27 @@ class FolderInformationDialogComponent extends BaseComponent {
|
|
|
2097
2093
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2098
2094
|
*/
|
|
2099
2095
|
class ManageRulesDialogComponent extends BaseComponent {
|
|
2100
|
-
static rootElement = 'aca-edit-rule-dialog';
|
|
2101
|
-
createRuleButton = this.getChild('[data-automation-id="edit-rule-dialog-submit"]');
|
|
2102
|
-
cancelRuleButton = this.getChild('.aca-edit-rule-dialog__footer button').filter({ hasText: 'Cancel' });
|
|
2103
|
-
ruleNameInputLocator = this.getChild('[id="rule-details-name-input"]');
|
|
2104
|
-
ruleDescriptionInputLocator = this.getChild('[id="rule-details-description-textarea"]');
|
|
2105
|
-
addConditionButton = this.getChild('[data-automation-id="add-condition-button"]');
|
|
2106
|
-
addConditionGroupButton = this.getChild('[data-automation-id="add-group-button"]');
|
|
2107
|
-
fieldDropDown = this.getChild('[data-automation-id="field-select"]');
|
|
2108
|
-
comparatorDropDown = this.getChild('[data-automation-id="comparator-select"]');
|
|
2109
|
-
valueField = this.getChild('[data-automation-id="value-input"]');
|
|
2110
|
-
whenCreatedCheckbox = this.getChild('[data-automation-id="rule-trigger-checkbox-inbound"]');
|
|
2111
|
-
whenDeletedCheckbox = this.getChild('[data-automation-id="rule-trigger-checkbox-outbound"]');
|
|
2112
|
-
destinationFolderButton = this.getChild('[data-automation-id="card-textitem-clickable-icon-destination-folder"]');
|
|
2113
|
-
ruleSubfoldersCheckbox = this.getChild('[data-automation-id="rule-option-checkbox-inheritable"]');
|
|
2114
|
-
ruleDisableCheckbox = this.getChild('[data-automation-id="rule-option-checkbox-disabled"] input');
|
|
2115
|
-
actionsEllipsisButtons = this.getChild('[data-automation-id="rule-action-list-action-menu"]');
|
|
2116
|
-
actionsEllipsisDelete = this.page.locator('[data-automation-id="rule-action-list-remove-action-button"]');
|
|
2117
|
-
conditionsEllipsisButtons = this.getChild('[data-automation-id="condition-actions-button"]');
|
|
2118
|
-
conditionsEllipsisDelete = this.page.locator('button[title="Remove"]');
|
|
2096
|
+
static { this.rootElement = 'aca-edit-rule-dialog'; }
|
|
2119
2097
|
constructor(page) {
|
|
2120
2098
|
super(page, ManageRulesDialogComponent.rootElement);
|
|
2099
|
+
this.createRuleButton = this.getChild('[data-automation-id="edit-rule-dialog-submit"]');
|
|
2100
|
+
this.cancelRuleButton = this.getChild('.aca-edit-rule-dialog__footer button').filter({ hasText: 'Cancel' });
|
|
2101
|
+
this.ruleNameInputLocator = this.getChild('[id="rule-details-name-input"]');
|
|
2102
|
+
this.ruleDescriptionInputLocator = this.getChild('[id="rule-details-description-textarea"]');
|
|
2103
|
+
this.addConditionButton = this.getChild('[data-automation-id="add-condition-button"]');
|
|
2104
|
+
this.addConditionGroupButton = this.getChild('[data-automation-id="add-group-button"]');
|
|
2105
|
+
this.fieldDropDown = this.getChild('[data-automation-id="field-select"]');
|
|
2106
|
+
this.comparatorDropDown = this.getChild('[data-automation-id="comparator-select"]');
|
|
2107
|
+
this.valueField = this.getChild('[data-automation-id="value-input"]');
|
|
2108
|
+
this.whenCreatedCheckbox = this.getChild('[data-automation-id="rule-trigger-checkbox-inbound"]');
|
|
2109
|
+
this.whenDeletedCheckbox = this.getChild('[data-automation-id="rule-trigger-checkbox-outbound"]');
|
|
2110
|
+
this.destinationFolderButton = this.getChild('[data-automation-id="card-textitem-clickable-icon-destination-folder"]');
|
|
2111
|
+
this.ruleSubfoldersCheckbox = this.getChild('[data-automation-id="rule-option-checkbox-inheritable"]');
|
|
2112
|
+
this.ruleDisableCheckbox = this.getChild('[data-automation-id="rule-option-checkbox-disabled"] input');
|
|
2113
|
+
this.actionsEllipsisButtons = this.getChild('[data-automation-id="rule-action-list-action-menu"]');
|
|
2114
|
+
this.actionsEllipsisDelete = this.page.locator('[data-automation-id="rule-action-list-remove-action-button"]');
|
|
2115
|
+
this.conditionsEllipsisButtons = this.getChild('[data-automation-id="condition-actions-button"]');
|
|
2116
|
+
this.conditionsEllipsisDelete = this.page.locator('button[title="Remove"]');
|
|
2121
2117
|
}
|
|
2122
2118
|
async deleteActions(noActions) {
|
|
2123
2119
|
for (let i = 0; i < noActions; i++) {
|
|
@@ -2157,19 +2153,19 @@ class ManageRulesDialogComponent extends BaseComponent {
|
|
|
2157
2153
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2158
2154
|
*/
|
|
2159
2155
|
class ManageRules extends BaseComponent {
|
|
2160
|
-
static rootElement = '.aca-manage-rules';
|
|
2161
|
-
getGroupsList = (optionName) => this.getChild('.aca-rule-list-item__header', { hasText: optionName });
|
|
2162
|
-
ruleToggle = this.getChild('.aca-manage-rules__container [role="switch"]').first();
|
|
2163
|
-
ruleToggleFalse = this.getChild('aca-rule-list-grouping aca-rule-list-item [role="switch"][aria-checked="false"]').first();
|
|
2164
|
-
ruleDetailsDeleteButton = this.getChild('#delete-rule-btn');
|
|
2165
|
-
ruleDetailsEditButton = this.getChild('#edit-rule-btn');
|
|
2166
|
-
ruleDetailsPerformActionsDiv = this.getChild('adf-card-view-selectitem [data-automation-id="select-box"]');
|
|
2167
|
-
rulesEmptyList = this.getChild('adf-empty-content');
|
|
2168
|
-
ruleActions = this.getChild('aca-rule-action');
|
|
2169
|
-
ruleConditionsInGroup = this.getChild('aca-rule-composite-condition aca-rule-simple-condition');
|
|
2170
|
-
ruleDescription = this.getChild('.aca-manage-rules__container__rule-details__header__title__description');
|
|
2156
|
+
static { this.rootElement = '.aca-manage-rules'; }
|
|
2171
2157
|
constructor(page) {
|
|
2172
2158
|
super(page, ManageRules.rootElement);
|
|
2159
|
+
this.getGroupsList = (optionName) => this.getChild('.aca-rule-list-item__header', { hasText: optionName });
|
|
2160
|
+
this.ruleToggle = this.getChild('.aca-manage-rules__container [role="switch"]').first();
|
|
2161
|
+
this.ruleToggleFalse = this.getChild('aca-rule-list-grouping aca-rule-list-item [role="switch"][aria-checked="false"]').first();
|
|
2162
|
+
this.ruleDetailsDeleteButton = this.getChild('#delete-rule-btn');
|
|
2163
|
+
this.ruleDetailsEditButton = this.getChild('#edit-rule-btn');
|
|
2164
|
+
this.ruleDetailsPerformActionsDiv = this.getChild('adf-card-view-selectitem [data-automation-id="select-box"]');
|
|
2165
|
+
this.rulesEmptyList = this.getChild('adf-empty-content');
|
|
2166
|
+
this.ruleActions = this.getChild('aca-rule-action');
|
|
2167
|
+
this.ruleConditionsInGroup = this.getChild('aca-rule-composite-condition aca-rule-simple-condition');
|
|
2168
|
+
this.ruleDescription = this.getChild('.aca-manage-rules__container__rule-details__header__title__description');
|
|
2173
2169
|
}
|
|
2174
2170
|
async checkAspects(aspects) {
|
|
2175
2171
|
for (let i = 0; i < aspects.length; i++) {
|
|
@@ -2222,7 +2218,7 @@ class ManageRules extends BaseComponent {
|
|
|
2222
2218
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2223
2219
|
*/
|
|
2224
2220
|
class RulesToolbarComponent extends BaseComponent {
|
|
2225
|
-
static rootElement = '.aca-manage-rules__actions-bar';
|
|
2221
|
+
static { this.rootElement = '.aca-manage-rules__actions-bar'; }
|
|
2226
2222
|
constructor(page) {
|
|
2227
2223
|
super(page, RulesToolbarComponent.rootElement);
|
|
2228
2224
|
}
|
|
@@ -2284,7 +2280,7 @@ class RulesToolbarComponent extends BaseComponent {
|
|
|
2284
2280
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2285
2281
|
*/
|
|
2286
2282
|
class SpinnerComponent extends BaseComponent {
|
|
2287
|
-
static rootElement = '[role="progressbar"]';
|
|
2283
|
+
static { this.rootElement = '[role="progressbar"]'; }
|
|
2288
2284
|
constructor(page, rootElement = SpinnerComponent.rootElement) {
|
|
2289
2285
|
super(page, rootElement);
|
|
2290
2286
|
}
|
|
@@ -2356,25 +2352,25 @@ var MimeType;
|
|
|
2356
2352
|
MimeType["PNGImage"] = "PNG Image [image/png]";
|
|
2357
2353
|
})(MimeType || (MimeType = {}));
|
|
2358
2354
|
class ActionsDropdownComponent extends BaseComponent {
|
|
2359
|
-
static rootElement = 'aca-edit-rule-dialog aca-rule-action-list';
|
|
2360
|
-
getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
2361
|
-
ruleActionLocator = this.getChild('aca-rule-action');
|
|
2362
|
-
addActionButtonLocator = this.getChild('[data-automation-id="rule-action-list-add-action-button"]');
|
|
2363
|
-
actionDropdownLocator = this.getChild('[data-automation-id="rule-action-select"]');
|
|
2364
|
-
actionAspectNameLocator = '[data-automation-id="header-aspect-name"] .adf-property-field';
|
|
2365
|
-
actionCheckInInputLocator = '[data-automation-id="header-description"] input';
|
|
2366
|
-
actionSimpleWorkflowStepInputLocator = '[data-automation-id="header-approve-step"] input';
|
|
2367
|
-
actionSimpleWorkflowActionChoiceLocator = '[data-automation-id="content-node-selector-actions-choose"]';
|
|
2368
|
-
actionSimpleWorkflowLabelApproveLocator = `[data-automation-id="card-boolean-label-approve-move"]`;
|
|
2369
|
-
actionSimpleWorkflowSRejectStepLocator = '[data-automation-id="header-reject-step"] input';
|
|
2370
|
-
actionSimpleWorkflowRejectFolderLocator = `[data-automation-id="header-reject-folder"] input`;
|
|
2371
|
-
actionSimpleWorkflowApproveFolderLocator = `[data-automation-id="header-approve-folder"] [role="img"]`;
|
|
2372
|
-
actionSpecialiseTypeLocator = '[data-automation-id="header-type-name"] [role="combobox"]';
|
|
2373
|
-
mimeTypeDropdownLocator = this.getChild('[data-automation-id="select-box"][aria-label="Mimetype *"]');
|
|
2374
|
-
actionTransformAndCopyContentDestinationFolderLocator = '[data-automation-id="card-textitem-value-destination-folder"]';
|
|
2375
|
-
contentNodeSelectorSearchInput = '[data-automation-id="content-node-selector-search-input"]';
|
|
2355
|
+
static { this.rootElement = 'aca-edit-rule-dialog aca-rule-action-list'; }
|
|
2376
2356
|
constructor(page) {
|
|
2377
2357
|
super(page, ActionsDropdownComponent.rootElement);
|
|
2358
|
+
this.getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
2359
|
+
this.ruleActionLocator = this.getChild('aca-rule-action');
|
|
2360
|
+
this.addActionButtonLocator = this.getChild('[data-automation-id="rule-action-list-add-action-button"]');
|
|
2361
|
+
this.actionDropdownLocator = this.getChild('[data-automation-id="rule-action-select"]');
|
|
2362
|
+
this.actionAspectNameLocator = '[data-automation-id="header-aspect-name"] .adf-property-field';
|
|
2363
|
+
this.actionCheckInInputLocator = '[data-automation-id="header-description"] input';
|
|
2364
|
+
this.actionSimpleWorkflowStepInputLocator = '[data-automation-id="header-approve-step"] input';
|
|
2365
|
+
this.actionSimpleWorkflowActionChoiceLocator = '[data-automation-id="content-node-selector-actions-choose"]';
|
|
2366
|
+
this.actionSimpleWorkflowLabelApproveLocator = `[data-automation-id="card-boolean-label-approve-move"]`;
|
|
2367
|
+
this.actionSimpleWorkflowSRejectStepLocator = '[data-automation-id="header-reject-step"] input';
|
|
2368
|
+
this.actionSimpleWorkflowRejectFolderLocator = `[data-automation-id="header-reject-folder"] input`;
|
|
2369
|
+
this.actionSimpleWorkflowApproveFolderLocator = `[data-automation-id="header-approve-folder"] [role="img"]`;
|
|
2370
|
+
this.actionSpecialiseTypeLocator = '[data-automation-id="header-type-name"] [role="combobox"]';
|
|
2371
|
+
this.mimeTypeDropdownLocator = this.getChild('[data-automation-id="select-box"][aria-label="Mimetype *"]');
|
|
2372
|
+
this.actionTransformAndCopyContentDestinationFolderLocator = '[data-automation-id="card-textitem-value-destination-folder"]';
|
|
2373
|
+
this.contentNodeSelectorSearchInput = '[data-automation-id="content-node-selector-search-input"]';
|
|
2378
2374
|
}
|
|
2379
2375
|
async selectAction(action, index) {
|
|
2380
2376
|
if (index > 0) {
|
|
@@ -2503,7 +2499,10 @@ var Comparator;
|
|
|
2503
2499
|
Comparator["EndsWith"] = "Ends with";
|
|
2504
2500
|
})(Comparator || (Comparator = {}));
|
|
2505
2501
|
class ConditionComponent extends ManageRulesDialogComponent {
|
|
2506
|
-
|
|
2502
|
+
constructor() {
|
|
2503
|
+
super(...arguments);
|
|
2504
|
+
this.getOptionLocator = (optionName) => this.page.locator('[role=listbox] [role=option]', { hasText: optionName }).first();
|
|
2505
|
+
}
|
|
2507
2506
|
async selectField(fields, index) {
|
|
2508
2507
|
await this.fieldDropDown.nth(index).click();
|
|
2509
2508
|
const option = this.getOptionLocator(fields);
|
|
@@ -2557,74 +2556,74 @@ class ConditionComponent extends ManageRulesDialogComponent {
|
|
|
2557
2556
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2558
2557
|
*/
|
|
2559
2558
|
class AdfInfoDrawerComponent extends BaseComponent {
|
|
2560
|
-
static rootElement = 'adf-info-drawer';
|
|
2559
|
+
static { this.rootElement = 'adf-info-drawer'; }
|
|
2561
2560
|
constructor(page) {
|
|
2562
2561
|
super(page, AdfInfoDrawerComponent.rootElement);
|
|
2562
|
+
this.categoriesManagement = this.getChild('adf-categories-management');
|
|
2563
|
+
this.tagsCreator = this.getChild('adf-tags-creator');
|
|
2564
|
+
this.getNameField = (labelText) => this.getChild(`[data-automation-id="library-name-properties-wrapper"] input[placeholder='${labelText}']`);
|
|
2565
|
+
this.getIdField = (labelText) => this.getChild(`[data-automation-id="library-id-properties-wrapper"] input[placeholder='${labelText}']`);
|
|
2566
|
+
this.getVisibilityField = (labelText) => this.getChild(`[data-automation-id="library-visibility-properties-wrapper"]`).getByLabel(labelText);
|
|
2567
|
+
this.getDescriptionField = this.getChild('[data-automation-id="library-description-properties-wrapper"] textarea');
|
|
2568
|
+
this.propertiesTab = this.page.getByRole('tab', { name: 'Properties' });
|
|
2569
|
+
this.commentsTab = this.page.getByRole('tab', { name: 'Comments' });
|
|
2570
|
+
this.infoDrawerTabs = this.getChild('.adf-info-drawer-tab');
|
|
2571
|
+
this.commentInputField = this.getChild('#comment-input');
|
|
2572
|
+
this.commentsHeader = this.getChild('#comment-header');
|
|
2573
|
+
this.addCommentButton = this.getChild('[data-automation-id="comments-input-add"]');
|
|
2574
|
+
this.commentsList = this.getChild('.adf-comment-list-item');
|
|
2575
|
+
this.commentUsername = this.getChild('.adf-comment-user-name');
|
|
2576
|
+
this.commentTextContent = this.getChild('.adf-comment-message');
|
|
2577
|
+
this.commentTimestamp = this.getChild('.adf-comment-message-time');
|
|
2578
|
+
this.infoDrawerPanel = this.page.locator(AdfInfoDrawerComponent.rootElement);
|
|
2579
|
+
this.headerTitle = this.getChild('.adf-info-drawer-layout-header-title').getByRole('heading');
|
|
2580
|
+
this.editButton = this.page.getByRole('button', { name: 'Edit' });
|
|
2581
|
+
this.cancelButton = this.page.getByRole('button', { name: 'Cancel' });
|
|
2582
|
+
this.updateButton = this.page.getByRole('button', { name: 'Update' });
|
|
2583
|
+
this.hintMessage = this.getChild('[data-automation-id="app-library-metadata-form-name-hint"]');
|
|
2584
|
+
this.errorNameMessage = this.getChild('[data-automation-id="library-name-properties-wrapper"] [aria-atomic="true"]');
|
|
2585
|
+
this.errorDescriptionMessage = this.getChild('[data-automation-id="library-description-properties-wrapper"] [aria-atomic="true"]');
|
|
2586
|
+
this.expandDetailsButton = this.getChild(`button[title='Expand panel']`);
|
|
2587
|
+
this.expandedDetailsTabs = this.page.locator('.aca-details-container [role="tab"]');
|
|
2588
|
+
this.expandedDetailsPermissionsTab = this.expandedDetailsTabs.getByText('Permissions');
|
|
2589
|
+
this.nameField = this.getChild('input[placeholder=Name]');
|
|
2590
|
+
this.idField = this.getChild(`input[placeholder='Library ID']`);
|
|
2591
|
+
this.descriptionField = this.getChild('textarea[placeholder=Description]');
|
|
2592
|
+
this.visibilityField = this.infoDrawerPanel.getByRole('combobox');
|
|
2593
|
+
this.selectVisibility = (visibilityOption) => this.page.getByRole('listbox').getByRole('option', { name: visibilityOption }).click();
|
|
2594
|
+
this.tagsAccordion = this.getChild('[data-automation-id="adf-content-metadata-tags-panel"]');
|
|
2595
|
+
this.categoriesAccordion = this.getChild('[data-automation-id="adf-content-metadata-categories-panel"]');
|
|
2596
|
+
this.tagsAccordionPenButton = this.tagsAccordion.locator('[data-automation-id="showing-tag-input-button"]');
|
|
2597
|
+
this.categoriesAccordionPenButton = this.categoriesAccordion.locator('[data-automation-id="meta-data-categories-edit"]');
|
|
2598
|
+
this.tagsInput = this.tagsCreator.locator('input');
|
|
2599
|
+
this.createTagButton = this.tagsCreator.locator('.adf-create-tag-label');
|
|
2600
|
+
this.tagsChips = this.tagsCreator.locator('[role="listitem"]');
|
|
2601
|
+
this.tagsChipsXButton = this.tagsChips.locator('.adf-dynamic-chip-list-delete-icon');
|
|
2602
|
+
this.tagsAccordionCancelButton = this.getChild('[data-automation-id="reset-tags-metadata"]');
|
|
2603
|
+
this.tagsAccordionConfirmButton = this.getChild('[data-automation-id="save-tags-metadata"]');
|
|
2604
|
+
this.categoriesAccordionCancelButton = this.getChild('[data-automation-id="reset-metadata"]');
|
|
2605
|
+
this.categoriesAccordionConfirmButton = this.getChild('[data-automation-id="save-categories-metadata"]');
|
|
2606
|
+
this.categoriesInput = this.categoriesManagement.locator('input');
|
|
2607
|
+
this.categoriesListItems = this.categoriesManagement.locator('.adf-category');
|
|
2608
|
+
this.categoriesItemRemoveButton = this.categoriesManagement.locator('[data-automation-id="categories-remove-category-button"]');
|
|
2609
|
+
this.categoriesCreatedList = this.getChild('.adf-metadata-categories');
|
|
2610
|
+
this.generalInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-properties"]');
|
|
2611
|
+
this.generalInfoProperties = this.generalInfoAccordion.locator('.adf-property');
|
|
2612
|
+
this.generalInfoEditButton = this.getChild('[data-automation-id="meta-data-general-info-edit"]');
|
|
2613
|
+
this.exifInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-APP.CONTENT_METADATA.EXIF_GROUP_TITLE"]');
|
|
2614
|
+
this.exifInfoProperties = this.exifInfoAccordion.locator('.adf-property');
|
|
2615
|
+
this.generalInfoNameField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:name"]');
|
|
2616
|
+
this.generalInfoTitleField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:title"]');
|
|
2617
|
+
this.generalInfoAuthorField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:author"]');
|
|
2618
|
+
this.generalInfoDescriptionField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:description"]');
|
|
2619
|
+
this.generalInfoCreatorField = this.getChild('[data-automation-id="card-textitem-value-createdByUser.displayName"]');
|
|
2620
|
+
this.generalInfoCreatedDateField = this.getChild('[data-automation-id="header-createdAt"] .adf-property-value');
|
|
2621
|
+
this.generalInfoModifiedDateField = this.getChild('[data-automation-id="header-modifiedAt"] .adf-property-value');
|
|
2622
|
+
this.generalInfoMimeTypeField = this.getChild('[data-automation-id="card-textitem-value-content.mimeTypeName"]');
|
|
2623
|
+
this.generalInfoContentTypeCombobox = this.getChild('[role="combobox"]');
|
|
2624
|
+
this.generalInfoNameError = this.getChild('[data-automation-id="card-textitem-error-properties.cm:name"]');
|
|
2625
|
+
this.generalInfoSaveButton = this.getChild('[data-automation-id="save-general-info-metadata"]');
|
|
2563
2626
|
}
|
|
2564
|
-
categoriesManagement = this.getChild('adf-categories-management');
|
|
2565
|
-
tagsCreator = this.getChild('adf-tags-creator');
|
|
2566
|
-
getNameField = (labelText) => this.getChild(`[data-automation-id="library-name-properties-wrapper"] input[placeholder='${labelText}']`);
|
|
2567
|
-
getIdField = (labelText) => this.getChild(`[data-automation-id="library-id-properties-wrapper"] input[placeholder='${labelText}']`);
|
|
2568
|
-
getVisibilityField = (labelText) => this.getChild(`[data-automation-id="library-visibility-properties-wrapper"]`).getByLabel(labelText);
|
|
2569
|
-
getDescriptionField = this.getChild('[data-automation-id="library-description-properties-wrapper"] textarea');
|
|
2570
|
-
propertiesTab = this.page.getByRole('tab', { name: 'Properties' });
|
|
2571
|
-
commentsTab = this.page.getByRole('tab', { name: 'Comments' });
|
|
2572
|
-
infoDrawerTabs = this.getChild('.adf-info-drawer-tab');
|
|
2573
|
-
commentInputField = this.getChild('#comment-input');
|
|
2574
|
-
commentsHeader = this.getChild('#comment-header');
|
|
2575
|
-
addCommentButton = this.getChild('[data-automation-id="comments-input-add"]');
|
|
2576
|
-
commentsList = this.getChild('.adf-comment-list-item');
|
|
2577
|
-
commentUsername = this.getChild('.adf-comment-user-name');
|
|
2578
|
-
commentTextContent = this.getChild('.adf-comment-message');
|
|
2579
|
-
commentTimestamp = this.getChild('.adf-comment-message-time');
|
|
2580
|
-
infoDrawerPanel = this.page.locator(AdfInfoDrawerComponent.rootElement);
|
|
2581
|
-
headerTitle = this.getChild('.adf-info-drawer-layout-header-title').getByRole('heading');
|
|
2582
|
-
editButton = this.page.getByRole('button', { name: 'Edit' });
|
|
2583
|
-
cancelButton = this.page.getByRole('button', { name: 'Cancel' });
|
|
2584
|
-
updateButton = this.page.getByRole('button', { name: 'Update' });
|
|
2585
|
-
hintMessage = this.getChild('[data-automation-id="app-library-metadata-form-name-hint"]');
|
|
2586
|
-
errorNameMessage = this.getChild('[data-automation-id="library-name-properties-wrapper"] [aria-atomic="true"]');
|
|
2587
|
-
errorDescriptionMessage = this.getChild('[data-automation-id="library-description-properties-wrapper"] [aria-atomic="true"]');
|
|
2588
|
-
expandDetailsButton = this.getChild(`button[title='Expand panel']`);
|
|
2589
|
-
expandedDetailsTabs = this.page.locator('.aca-details-container [role="tab"]');
|
|
2590
|
-
expandedDetailsPermissionsTab = this.expandedDetailsTabs.getByText('Permissions');
|
|
2591
|
-
nameField = this.getChild('input[placeholder=Name]');
|
|
2592
|
-
idField = this.getChild(`input[placeholder='Library ID']`);
|
|
2593
|
-
descriptionField = this.getChild('textarea[placeholder=Description]');
|
|
2594
|
-
visibilityField = this.infoDrawerPanel.getByRole('combobox');
|
|
2595
|
-
selectVisibility = (visibilityOption) => this.page.getByRole('listbox').getByRole('option', { name: visibilityOption }).click();
|
|
2596
|
-
tagsAccordion = this.getChild('[data-automation-id="adf-content-metadata-tags-panel"]');
|
|
2597
|
-
categoriesAccordion = this.getChild('[data-automation-id="adf-content-metadata-categories-panel"]');
|
|
2598
|
-
tagsAccordionPenButton = this.tagsAccordion.locator('[data-automation-id="showing-tag-input-button"]');
|
|
2599
|
-
categoriesAccordionPenButton = this.categoriesAccordion.locator('[data-automation-id="meta-data-categories-edit"]');
|
|
2600
|
-
tagsInput = this.tagsCreator.locator('input');
|
|
2601
|
-
createTagButton = this.tagsCreator.locator('.adf-create-tag-label');
|
|
2602
|
-
tagsChips = this.tagsCreator.locator('[role="listitem"]');
|
|
2603
|
-
tagsChipsXButton = this.tagsChips.locator('.adf-dynamic-chip-list-delete-icon');
|
|
2604
|
-
tagsAccordionCancelButton = this.getChild('[data-automation-id="reset-tags-metadata"]');
|
|
2605
|
-
tagsAccordionConfirmButton = this.getChild('[data-automation-id="save-tags-metadata"]');
|
|
2606
|
-
categoriesAccordionCancelButton = this.getChild('[data-automation-id="reset-metadata"]');
|
|
2607
|
-
categoriesAccordionConfirmButton = this.getChild('[data-automation-id="save-categories-metadata"]');
|
|
2608
|
-
categoriesInput = this.categoriesManagement.locator('input');
|
|
2609
|
-
categoriesListItems = this.categoriesManagement.locator('.adf-category');
|
|
2610
|
-
categoriesItemRemoveButton = this.categoriesManagement.locator('[data-automation-id="categories-remove-category-button"]');
|
|
2611
|
-
categoriesCreatedList = this.getChild('.adf-metadata-categories');
|
|
2612
|
-
generalInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-properties"]');
|
|
2613
|
-
generalInfoProperties = this.generalInfoAccordion.locator('.adf-property');
|
|
2614
|
-
generalInfoEditButton = this.getChild('[data-automation-id="meta-data-general-info-edit"]');
|
|
2615
|
-
exifInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-APP.CONTENT_METADATA.EXIF_GROUP_TITLE"]');
|
|
2616
|
-
exifInfoProperties = this.exifInfoAccordion.locator('.adf-property');
|
|
2617
|
-
generalInfoNameField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:name"]');
|
|
2618
|
-
generalInfoTitleField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:title"]');
|
|
2619
|
-
generalInfoAuthorField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:author"]');
|
|
2620
|
-
generalInfoDescriptionField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:description"]');
|
|
2621
|
-
generalInfoCreatorField = this.getChild('[data-automation-id="card-textitem-value-createdByUser.displayName"]');
|
|
2622
|
-
generalInfoCreatedDateField = this.getChild('[data-automation-id="header-createdAt"] .adf-property-value');
|
|
2623
|
-
generalInfoModifiedDateField = this.getChild('[data-automation-id="header-modifiedAt"] .adf-property-value');
|
|
2624
|
-
generalInfoMimeTypeField = this.getChild('[data-automation-id="card-textitem-value-content.mimeTypeName"]');
|
|
2625
|
-
generalInfoContentTypeCombobox = this.getChild('[role="combobox"]');
|
|
2626
|
-
generalInfoNameError = this.getChild('[data-automation-id="card-textitem-error-properties.cm:name"]');
|
|
2627
|
-
generalInfoSaveButton = this.getChild('[data-automation-id="save-general-info-metadata"]');
|
|
2628
2627
|
async checkCommentsHeaderCount() {
|
|
2629
2628
|
const commentsCountTextContent = await this.commentsHeader.textContent();
|
|
2630
2629
|
const commentsCountString = commentsCountTextContent.match(/\d+/g)[0];
|
|
@@ -2673,27 +2672,27 @@ class AdfInfoDrawerComponent extends BaseComponent {
|
|
|
2673
2672
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2674
2673
|
*/
|
|
2675
2674
|
class AcaHeader extends BaseComponent {
|
|
2676
|
-
static rootElement = 'aca-toolbar';
|
|
2677
|
-
moreActionsButton = this.getChild('button[id="app.viewer.toolbar.more"]');
|
|
2678
|
-
toolbarMoreActions = this.getChild('button[id="app.toolbar.more"]');
|
|
2679
|
-
createButton = this.getChild('[id="app.toolbar.create"]');
|
|
2680
|
-
viewDetails = this.getChild('[title="View Details"]');
|
|
2681
|
-
viewButton = this.getChild('button[title="View"]');
|
|
2682
|
-
searchButton = this.getChild('button[id="app.toolbar.search"]');
|
|
2683
|
-
fullScreenButton = this.getChild('button[id="app.viewer.fullscreen"]');
|
|
2684
|
-
shareButton = this.getChild('button[id="share-action-button"]');
|
|
2685
|
-
downloadButtonViewer = this.getChild('button[id="app.viewer.download"]');
|
|
2686
|
-
downloadButton = this.getChild('button[id="app.toolbar.download"]');
|
|
2687
|
-
sharedDownloadButton = this.getChild('button[id="app.viewer.shared.download"]');
|
|
2688
|
-
uploadButton = this.getChild('button[id="app.toolbar.upload"]');
|
|
2689
|
-
uploadFileButton = this.page.locator('button[id="app.create.uploadFile"]');
|
|
2690
|
-
uploadNewVersionButton = this.page.locator('#app-upload-file-version');
|
|
2691
|
-
permanentlyDeleteButton = this.getChild('button[id="app.toolbar.purgeDeletedNodes"]');
|
|
2692
|
-
restoreButton = this.getChild('button[id="app.toolbar.restoreDeletedNodes"]');
|
|
2675
|
+
static { this.rootElement = 'aca-toolbar'; }
|
|
2693
2676
|
constructor(page) {
|
|
2694
2677
|
super(page, AcaHeader.rootElement);
|
|
2678
|
+
this.moreActionsButton = this.getChild('button[id="app.viewer.toolbar.more"]');
|
|
2679
|
+
this.toolbarMoreActions = this.getChild('button[id="app.toolbar.more"]');
|
|
2680
|
+
this.createButton = this.getChild('[id="app.toolbar.create"]');
|
|
2681
|
+
this.viewDetails = this.getChild('[title="View Details"]');
|
|
2682
|
+
this.viewButton = this.getChild('button[title="View"]');
|
|
2683
|
+
this.searchButton = this.getChild('button[id="app.toolbar.search"]');
|
|
2684
|
+
this.fullScreenButton = this.getChild('button[id="app.viewer.fullscreen"]');
|
|
2685
|
+
this.shareButton = this.getChild('button[id="share-action-button"]');
|
|
2686
|
+
this.downloadButtonViewer = this.getChild('button[id="app.viewer.download"]');
|
|
2687
|
+
this.downloadButton = this.getChild('button[id="app.toolbar.download"]');
|
|
2688
|
+
this.sharedDownloadButton = this.getChild('button[id="app.viewer.shared.download"]');
|
|
2689
|
+
this.uploadButton = this.getChild('button[id="app.toolbar.upload"]');
|
|
2690
|
+
this.uploadFileButton = this.page.locator('button[id="app.create.uploadFile"]');
|
|
2691
|
+
this.uploadNewVersionButton = this.page.locator('#app-upload-file-version');
|
|
2692
|
+
this.permanentlyDeleteButton = this.getChild('button[id="app.toolbar.purgeDeletedNodes"]');
|
|
2693
|
+
this.restoreButton = this.getChild('button[id="app.toolbar.restoreDeletedNodes"]');
|
|
2694
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
2695
2695
|
}
|
|
2696
|
-
matMenu = new MatMenuComponent(this.page);
|
|
2697
2696
|
async clickViewerMoreActions() {
|
|
2698
2697
|
await this.moreActionsButton.waitFor({ state: 'attached' });
|
|
2699
2698
|
await this.moreActionsButton.click();
|
|
@@ -2746,30 +2745,30 @@ class AcaHeader extends BaseComponent {
|
|
|
2746
2745
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2747
2746
|
*/
|
|
2748
2747
|
class ViewerComponent extends BaseComponent {
|
|
2749
|
-
static rootElement = 'adf-viewer';
|
|
2750
|
-
viewerLocator = this.getChild('adf-viewer-render');
|
|
2751
|
-
closeButtonLocator = this.getChild('.adf-viewer-close-button');
|
|
2752
|
-
fileTitleButtonLocator = this.getChild('.adf-viewer__file-title');
|
|
2753
|
-
pdfViewerContentPages = this.getChild('.adf-pdf-viewer__content .page');
|
|
2754
|
-
shareButton = this.getChild('button[id="share-action-button"]');
|
|
2755
|
-
downloadButton = this.getChild('button[id="app.viewer.download"]');
|
|
2756
|
-
unknownFormat = this.getChild(`adf-viewer-unknown-format .adf-viewer__unknown-format-view`);
|
|
2757
|
-
viewerImage = this.viewerLocator.locator('.cropper-canvas img');
|
|
2758
|
-
viewerDocument = this.viewerLocator.locator('.adf-pdf-viewer__content [role="document"]');
|
|
2759
|
-
documentThumbnailButton = this.getChild('[data-automation-id="adf-thumbnails-button"]');
|
|
2760
|
-
thumbnailsPages = this.getChild('[data-automation-id="adf-thumbnails-content"] adf-pdf-thumb');
|
|
2761
|
-
thumbnailsCloseButton = this.getChild('[data-automation-id="adf-thumbnails-close"]');
|
|
2762
|
-
viewerPage = this.getChild('[data-automation-id="adf-page-selector"]');
|
|
2763
|
-
viewerMedia = this.getChild('adf-media-player');
|
|
2764
|
-
viewerSpinner = this.getChild('.adf-viewer-render__loading-screen');
|
|
2765
|
-
zoomInButton = this.getChild('#viewer-zoom-in-button');
|
|
2766
|
-
zoomOutButton = this.getChild('#viewer-zoom-out-button');
|
|
2767
|
-
zoomScale = this.getChild('[data-automation-id="adf-page-scale"]');
|
|
2768
|
-
zoomResetButton = this.getChild('#viewer-reset-button');
|
|
2769
|
-
fitToPageButton = this.getChild('#viewer-scale-page-button');
|
|
2770
|
-
toolbar = new AcaHeader(this.page);
|
|
2748
|
+
static { this.rootElement = 'adf-viewer'; }
|
|
2771
2749
|
constructor(page) {
|
|
2772
2750
|
super(page, ViewerComponent.rootElement);
|
|
2751
|
+
this.viewerLocator = this.getChild('adf-viewer-render');
|
|
2752
|
+
this.closeButtonLocator = this.getChild('.adf-viewer-close-button');
|
|
2753
|
+
this.fileTitleButtonLocator = this.getChild('.adf-viewer__file-title');
|
|
2754
|
+
this.pdfViewerContentPages = this.getChild('.adf-pdf-viewer__content .page');
|
|
2755
|
+
this.shareButton = this.getChild('button[id="share-action-button"]');
|
|
2756
|
+
this.downloadButton = this.getChild('button[id="app.viewer.download"]');
|
|
2757
|
+
this.unknownFormat = this.getChild(`adf-viewer-unknown-format .adf-viewer__unknown-format-view`);
|
|
2758
|
+
this.viewerImage = this.viewerLocator.locator('.cropper-canvas img');
|
|
2759
|
+
this.viewerDocument = this.viewerLocator.locator('.adf-pdf-viewer__content [role="document"]');
|
|
2760
|
+
this.documentThumbnailButton = this.getChild('[data-automation-id="adf-thumbnails-button"]');
|
|
2761
|
+
this.thumbnailsPages = this.getChild('[data-automation-id="adf-thumbnails-content"] adf-pdf-thumb');
|
|
2762
|
+
this.thumbnailsCloseButton = this.getChild('[data-automation-id="adf-thumbnails-close"]');
|
|
2763
|
+
this.viewerPage = this.getChild('[data-automation-id="adf-page-selector"]');
|
|
2764
|
+
this.viewerMedia = this.getChild('adf-media-player');
|
|
2765
|
+
this.viewerSpinner = this.getChild('.adf-viewer-render__loading-screen');
|
|
2766
|
+
this.zoomInButton = this.getChild('#viewer-zoom-in-button');
|
|
2767
|
+
this.zoomOutButton = this.getChild('#viewer-zoom-out-button');
|
|
2768
|
+
this.zoomScale = this.getChild('[data-automation-id="adf-page-scale"]');
|
|
2769
|
+
this.zoomResetButton = this.getChild('#viewer-reset-button');
|
|
2770
|
+
this.fitToPageButton = this.getChild('#viewer-scale-page-button');
|
|
2771
|
+
this.toolbar = new AcaHeader(this.page);
|
|
2773
2772
|
}
|
|
2774
2773
|
async isPdfViewerContentDisplayed() {
|
|
2775
2774
|
const count = await this.pdfViewerContentPages.count();
|
|
@@ -2877,11 +2876,11 @@ class ViewerComponent extends BaseComponent {
|
|
|
2877
2876
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2878
2877
|
*/
|
|
2879
2878
|
class SearchFiltersCategories extends BaseComponent {
|
|
2880
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
2879
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
2881
2880
|
constructor(page) {
|
|
2882
2881
|
super(page, SearchFiltersCategories.rootElement);
|
|
2882
|
+
this.addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
2883
2883
|
}
|
|
2884
|
-
addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
2885
2884
|
}
|
|
2886
2885
|
|
|
2887
2886
|
/*!
|
|
@@ -2908,16 +2907,16 @@ class SearchFiltersCategories extends BaseComponent {
|
|
|
2908
2907
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2909
2908
|
*/
|
|
2910
2909
|
class SearchFiltersDate extends BaseComponent {
|
|
2911
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
2910
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
2912
2911
|
constructor(page) {
|
|
2913
2912
|
super(page, SearchFiltersDate.rootElement);
|
|
2913
|
+
this.createdTab = this.getChild(`[role='tab']`, { hasText: 'Created' });
|
|
2914
|
+
this.modifiedTab = this.getChild(`[role='tab']`, { hasText: 'Modified' });
|
|
2915
|
+
this.anytimeButton = this.getChild(`[data-automation-id$='date-range-anytime']`);
|
|
2916
|
+
this.anytimeRadioButton = this.anytimeButton.locator(`input`);
|
|
2917
|
+
this.betweenButton = this.getChild(`[data-automation-id$='date-range-between']`);
|
|
2918
|
+
this.betweenRadioButton = this.betweenButton.locator(`input`);
|
|
2914
2919
|
}
|
|
2915
|
-
createdTab = this.getChild(`[role='tab']`, { hasText: 'Created' });
|
|
2916
|
-
modifiedTab = this.getChild(`[role='tab']`, { hasText: 'Modified' });
|
|
2917
|
-
anytimeButton = this.getChild(`[data-automation-id$='date-range-anytime']`);
|
|
2918
|
-
anytimeRadioButton = this.anytimeButton.locator(`input`);
|
|
2919
|
-
betweenButton = this.getChild(`[data-automation-id$='date-range-between']`);
|
|
2920
|
-
betweenRadioButton = this.betweenButton.locator(`input`);
|
|
2921
2920
|
async openCreatedModifiedTab(page, tab) {
|
|
2922
2921
|
switch (tab) {
|
|
2923
2922
|
case 'Created':
|
|
@@ -2963,11 +2962,11 @@ class SearchFiltersDate extends BaseComponent {
|
|
|
2963
2962
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2964
2963
|
*/
|
|
2965
2964
|
class SearchFiltersLocation extends BaseComponent {
|
|
2966
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
2965
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
2967
2966
|
constructor(page) {
|
|
2968
2967
|
super(page, SearchFiltersLocation.rootElement);
|
|
2968
|
+
this.addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
2969
2969
|
}
|
|
2970
|
-
addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
2971
2970
|
searchOption(value) {
|
|
2972
2971
|
return this.page.locator(`[data-automation-id="option-${value}"]`);
|
|
2973
2972
|
}
|
|
@@ -3004,14 +3003,14 @@ class SearchFiltersLocation extends BaseComponent {
|
|
|
3004
3003
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3005
3004
|
*/
|
|
3006
3005
|
class SearchFiltersLogic extends BaseComponent {
|
|
3007
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
3006
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
3008
3007
|
constructor(page) {
|
|
3009
3008
|
super(page, SearchFiltersLogic.rootElement);
|
|
3009
|
+
this.matchAllInput = this.getChild(`[placeholder$='Results will match all words entered here']`);
|
|
3010
|
+
this.matchAnyInput = this.getChild(`[placeholder$='Results will match any words entered here']`);
|
|
3011
|
+
this.excludeInput = this.getChild(`[placeholder$='Results will exclude matches with these words']`);
|
|
3012
|
+
this.matchExactInput = this.getChild(`[placeholder$='Results will match this entire phrase']`);
|
|
3010
3013
|
}
|
|
3011
|
-
matchAllInput = this.getChild(`[placeholder$='Results will match all words entered here']`);
|
|
3012
|
-
matchAnyInput = this.getChild(`[placeholder$='Results will match any words entered here']`);
|
|
3013
|
-
excludeInput = this.getChild(`[placeholder$='Results will exclude matches with these words']`);
|
|
3014
|
-
matchExactInput = this.getChild(`[placeholder$='Results will match this entire phrase']`);
|
|
3015
3014
|
}
|
|
3016
3015
|
|
|
3017
3016
|
/*!
|
|
@@ -3038,21 +3037,21 @@ class SearchFiltersLogic extends BaseComponent {
|
|
|
3038
3037
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3039
3038
|
*/
|
|
3040
3039
|
class SearchFiltersProperties extends BaseComponent {
|
|
3041
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
3040
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
3042
3041
|
constructor(page) {
|
|
3043
3042
|
super(page, SearchFiltersProperties.rootElement);
|
|
3043
|
+
this.operatorButton = this.getChild(`[data-automation-id='adf-search-properties-file-size-operator']`);
|
|
3044
|
+
this.fileSizeInput = this.getChild(`[placeholder$='Enter file size']`);
|
|
3045
|
+
this.unitButton = this.getChild(`[data-automation-id='adf-search-properties-file-size-unit']`);
|
|
3046
|
+
this.fileTypeInput = this.getChild(`[placeholder$='File Type']`);
|
|
3047
|
+
this.atLeastOption = this.page.locator(`[role="option"]`, { hasText: 'At Least' });
|
|
3048
|
+
this.atMostOption = this.page.locator(`[role="option"]`, { hasText: 'At Most' });
|
|
3049
|
+
this.exactlyOption = this.page.locator(`[role="option"]`, { hasText: 'Exactly' });
|
|
3050
|
+
this.kbUnit = this.page.locator(`[role="option"]`, { hasText: 'KB' });
|
|
3051
|
+
this.mbUnit = this.page.locator(`[role="option"]`, { hasText: 'MB' });
|
|
3052
|
+
this.gbUnit = this.page.locator(`[role="option"]`, { hasText: 'GB' });
|
|
3053
|
+
this.dropdownOptions = this.page.locator(`[role="option"]`);
|
|
3044
3054
|
}
|
|
3045
|
-
operatorButton = this.getChild(`[data-automation-id='adf-search-properties-file-size-operator']`);
|
|
3046
|
-
fileSizeInput = this.getChild(`[placeholder$='Enter file size']`);
|
|
3047
|
-
unitButton = this.getChild(`[data-automation-id='adf-search-properties-file-size-unit']`);
|
|
3048
|
-
fileTypeInput = this.getChild(`[placeholder$='File Type']`);
|
|
3049
|
-
atLeastOption = this.page.locator(`[role="option"]`, { hasText: 'At Least' });
|
|
3050
|
-
atMostOption = this.page.locator(`[role="option"]`, { hasText: 'At Most' });
|
|
3051
|
-
exactlyOption = this.page.locator(`[role="option"]`, { hasText: 'Exactly' });
|
|
3052
|
-
kbUnit = this.page.locator(`[role="option"]`, { hasText: 'KB' });
|
|
3053
|
-
mbUnit = this.page.locator(`[role="option"]`, { hasText: 'MB' });
|
|
3054
|
-
gbUnit = this.page.locator(`[role="option"]`, { hasText: 'GB' });
|
|
3055
|
-
dropdownOptions = this.page.locator(`[role="option"]`);
|
|
3056
3055
|
async setPropertiesParameters(page, operator, unit, fileSizeInputText, fileTypeInputText) {
|
|
3057
3056
|
await page.searchFilters.propertiesFilter.click();
|
|
3058
3057
|
if (operator) {
|
|
@@ -3120,11 +3119,11 @@ class SearchFiltersProperties extends BaseComponent {
|
|
|
3120
3119
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3121
3120
|
*/
|
|
3122
3121
|
class SearchFiltersTags extends BaseComponent {
|
|
3123
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
3122
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
3124
3123
|
constructor(page) {
|
|
3125
3124
|
super(page, SearchFiltersTags.rootElement);
|
|
3125
|
+
this.addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
3126
3126
|
}
|
|
3127
|
-
addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
3128
3127
|
searchOption(value) {
|
|
3129
3128
|
return this.page.locator(`[data-automation-id="option-${value}"]`);
|
|
3130
3129
|
}
|
|
@@ -3190,18 +3189,18 @@ class SearchFiltersTags extends BaseComponent {
|
|
|
3190
3189
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3191
3190
|
*/
|
|
3192
3191
|
class SearchFilters extends BaseComponent {
|
|
3193
|
-
static rootElement = '.aca-content__advanced-filters';
|
|
3192
|
+
static { this.rootElement = '.aca-content__advanced-filters'; }
|
|
3194
3193
|
constructor(page) {
|
|
3195
3194
|
super(page, SearchFilters.rootElement);
|
|
3195
|
+
this.logicFilter = this.getChild('adf-search-widget-chip', { hasText: 'Logic' });
|
|
3196
|
+
this.propertiesFilter = this.getChild('adf-search-widget-chip', { hasText: 'Properties' });
|
|
3197
|
+
this.dateFilter = this.getChild('adf-search-widget-chip', { hasText: 'Date' });
|
|
3198
|
+
this.locationFilter = this.getChild('adf-search-widget-chip', { hasText: 'Location' });
|
|
3199
|
+
this.tagsFilter = this.getChild('adf-search-widget-chip', { hasText: 'Tags' });
|
|
3200
|
+
this.categoriesFilter = this.getChild('adf-search-widget-chip', { hasText: 'Categories' });
|
|
3201
|
+
this.resetButton = this.getChild('button', { hasText: 'Reset' });
|
|
3202
|
+
this.dropdownOptions = this.page.locator(`[role="option"]`);
|
|
3196
3203
|
}
|
|
3197
|
-
logicFilter = this.getChild('adf-search-widget-chip', { hasText: 'Logic' });
|
|
3198
|
-
propertiesFilter = this.getChild('adf-search-widget-chip', { hasText: 'Properties' });
|
|
3199
|
-
dateFilter = this.getChild('adf-search-widget-chip', { hasText: 'Date' });
|
|
3200
|
-
locationFilter = this.getChild('adf-search-widget-chip', { hasText: 'Location' });
|
|
3201
|
-
tagsFilter = this.getChild('adf-search-widget-chip', { hasText: 'Tags' });
|
|
3202
|
-
categoriesFilter = this.getChild('adf-search-widget-chip', { hasText: 'Categories' });
|
|
3203
|
-
resetButton = this.getChild('button', { hasText: 'Reset' });
|
|
3204
|
-
dropdownOptions = this.page.locator(`[role="option"]`);
|
|
3205
3204
|
}
|
|
3206
3205
|
|
|
3207
3206
|
/*!
|
|
@@ -3228,20 +3227,20 @@ class SearchFilters extends BaseComponent {
|
|
|
3228
3227
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3229
3228
|
*/
|
|
3230
3229
|
class SearchInputComponent extends BaseComponent {
|
|
3231
|
-
static rootElement = 'aca-page-layout';
|
|
3232
|
-
searchInput = this.getChild('aca-search-input input');
|
|
3233
|
-
searchButton = this.page.locator('.aca-search-input--search-button');
|
|
3234
|
-
searchCloseButton = this.page.locator('.aca-search-input--close-button');
|
|
3235
|
-
searchInButton = this.getChild('aca-search-in-menu button');
|
|
3236
|
-
/**
|
|
3237
|
-
* Method used in cases where user have possibility to navigate "inside" the element (it's clickable and has link attribute).
|
|
3238
|
-
* Perform action .click() to navigate inside it
|
|
3239
|
-
*
|
|
3240
|
-
* @returns reference to cell element which contains link.
|
|
3241
|
-
*/
|
|
3242
|
-
getCellLinkByName = (name) => this.getChild('.adf-datatable-row[role="row"]', { hasText: name });
|
|
3230
|
+
static { this.rootElement = 'aca-page-layout'; }
|
|
3243
3231
|
constructor(page, rootElement = SearchInputComponent.rootElement) {
|
|
3244
3232
|
super(page, rootElement);
|
|
3233
|
+
this.searchInput = this.getChild('aca-search-input input');
|
|
3234
|
+
this.searchButton = this.page.locator('.aca-search-input--search-button');
|
|
3235
|
+
this.searchCloseButton = this.page.locator('.aca-search-input--close-button');
|
|
3236
|
+
this.searchInButton = this.getChild('aca-search-in-menu button');
|
|
3237
|
+
/**
|
|
3238
|
+
* Method used in cases where user have possibility to navigate "inside" the element (it's clickable and has link attribute).
|
|
3239
|
+
* Perform action .click() to navigate inside it
|
|
3240
|
+
*
|
|
3241
|
+
* @returns reference to cell element which contains link.
|
|
3242
|
+
*/
|
|
3243
|
+
this.getCellLinkByName = (name) => this.getChild('.adf-datatable-row[role="row"]', { hasText: name });
|
|
3245
3244
|
}
|
|
3246
3245
|
async searchFor(searchText) {
|
|
3247
3246
|
await this.searchInput.fill(searchText);
|
|
@@ -3273,13 +3272,13 @@ class SearchInputComponent extends BaseComponent {
|
|
|
3273
3272
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3274
3273
|
*/
|
|
3275
3274
|
class SearchMenuCard extends BaseComponent {
|
|
3276
|
-
static rootElement = '.adf-search-filter-menu-card';
|
|
3277
|
-
menuCardTitle = this.getChild('.adf-search-filter-title');
|
|
3278
|
-
menuCardClose = this.getChild('.adf-search-filter-title-action');
|
|
3279
|
-
menuCardClear = this.getChild('#cancel-filter-button');
|
|
3280
|
-
menuCardApply = this.getChild('#apply-filter-button');
|
|
3275
|
+
static { this.rootElement = '.adf-search-filter-menu-card'; }
|
|
3281
3276
|
constructor(page) {
|
|
3282
3277
|
super(page, SearchMenuCard.rootElement);
|
|
3278
|
+
this.menuCardTitle = this.getChild('.adf-search-filter-title');
|
|
3279
|
+
this.menuCardClose = this.getChild('.adf-search-filter-title-action');
|
|
3280
|
+
this.menuCardClear = this.getChild('#cancel-filter-button');
|
|
3281
|
+
this.menuCardApply = this.getChild('#apply-filter-button');
|
|
3283
3282
|
}
|
|
3284
3283
|
}
|
|
3285
3284
|
|
|
@@ -3307,13 +3306,13 @@ class SearchMenuCard extends BaseComponent {
|
|
|
3307
3306
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3308
3307
|
*/
|
|
3309
3308
|
class SearchSortingPicker extends BaseComponent {
|
|
3310
|
-
static rootElement = '#aca-button-action-menu';
|
|
3311
|
-
actionMenu = this.page.locator('[data-automation-id="auto_header_content_id_$thumbnail"]');
|
|
3312
|
-
sortOrderButton = this.page.locator('#aca-button-sorting-menu');
|
|
3313
|
-
sortByDropdownExpanded = this.page.locator('[role="menu"]').first();
|
|
3314
|
-
sortByList = this.page.locator('[role="menu"] button');
|
|
3309
|
+
static { this.rootElement = '#aca-button-action-menu'; }
|
|
3315
3310
|
constructor(page, rootElement = SearchSortingPicker.rootElement) {
|
|
3316
3311
|
super(page, rootElement);
|
|
3312
|
+
this.actionMenu = this.page.locator('[data-automation-id="auto_header_content_id_$thumbnail"]');
|
|
3313
|
+
this.sortOrderButton = this.page.locator('#aca-button-sorting-menu');
|
|
3314
|
+
this.sortByDropdownExpanded = this.page.locator('[role="menu"]').first();
|
|
3315
|
+
this.sortByList = this.page.locator('[role="menu"] button');
|
|
3317
3316
|
}
|
|
3318
3317
|
async waitForSortByDropdownToExpand() {
|
|
3319
3318
|
await this.sortByDropdownExpanded.waitFor();
|
|
@@ -3401,12 +3400,12 @@ class SearchSortingPicker extends BaseComponent {
|
|
|
3401
3400
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3402
3401
|
*/
|
|
3403
3402
|
class Breadcrumb extends BaseComponent {
|
|
3404
|
-
static rootElement = 'adf-breadcrumb';
|
|
3405
|
-
items = this.getChild('.adf-breadcrumb-item');
|
|
3406
|
-
currentItem = this.getChild('.adf-breadcrumb-item-current');
|
|
3407
|
-
getItemByTitle = (name) => this.getChild(`.adf-breadcrumb-item[title=${name}]`);
|
|
3403
|
+
static { this.rootElement = 'adf-breadcrumb'; }
|
|
3408
3404
|
constructor(page) {
|
|
3409
3405
|
super(page, Breadcrumb.rootElement);
|
|
3406
|
+
this.items = this.getChild('.adf-breadcrumb-item');
|
|
3407
|
+
this.currentItem = this.getChild('.adf-breadcrumb-item-current');
|
|
3408
|
+
this.getItemByTitle = (name) => this.getChild(`.adf-breadcrumb-item[title=${name}]`);
|
|
3410
3409
|
}
|
|
3411
3410
|
async getAllItems() {
|
|
3412
3411
|
const itemElements = await this.page.$$('adf-breadcrumb .adf-breadcrumb-item');
|
|
@@ -3446,19 +3445,19 @@ class Breadcrumb extends BaseComponent {
|
|
|
3446
3445
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3447
3446
|
*/
|
|
3448
3447
|
class SidenavComponent extends BaseComponent {
|
|
3449
|
-
static rootElement = '.adf-layout-container-sidenav';
|
|
3450
|
-
personalFiles = this.getChild(`[data-automation-id='app.navbar.personalFiles']`);
|
|
3451
|
-
myLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.files']`);
|
|
3452
|
-
favoriteLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.favorite']`);
|
|
3453
|
-
shared = this.getChild(`[data-automation-id='app.navbar.shared']`);
|
|
3454
|
-
recentFiles = this.getChild(`[data-automation-id='app.navbar.recentFiles']`);
|
|
3455
|
-
favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`);
|
|
3456
|
-
trash = this.getChild(`[data-automation-id='app.navbar.trashcan']`);
|
|
3457
|
-
sidenavToggle = this.getChild(`.aca-sidenav-header-title-logo`);
|
|
3458
|
-
sidenavExpand = this.page.locator(`[title='Expand navigation menu']`);
|
|
3459
|
-
expandedSidenav = this.getChild(`[data-automation-id='expanded']`);
|
|
3448
|
+
static { this.rootElement = '.adf-layout-container-sidenav'; }
|
|
3460
3449
|
constructor(page) {
|
|
3461
3450
|
super(page, SidenavComponent.rootElement);
|
|
3451
|
+
this.personalFiles = this.getChild(`[data-automation-id='app.navbar.personalFiles']`);
|
|
3452
|
+
this.myLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.files']`);
|
|
3453
|
+
this.favoriteLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.favorite']`);
|
|
3454
|
+
this.shared = this.getChild(`[data-automation-id='app.navbar.shared']`);
|
|
3455
|
+
this.recentFiles = this.getChild(`[data-automation-id='app.navbar.recentFiles']`);
|
|
3456
|
+
this.favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`);
|
|
3457
|
+
this.trash = this.getChild(`[data-automation-id='app.navbar.trashcan']`);
|
|
3458
|
+
this.sidenavToggle = this.getChild(`.aca-sidenav-header-title-logo`);
|
|
3459
|
+
this.sidenavExpand = this.page.locator(`[title='Expand navigation menu']`);
|
|
3460
|
+
this.expandedSidenav = this.getChild(`[data-automation-id='expanded']`);
|
|
3462
3461
|
}
|
|
3463
3462
|
async isActive(name) {
|
|
3464
3463
|
const cssClass = await this.getLinkLabel(name).getAttribute('class');
|
|
@@ -3531,11 +3530,11 @@ class SidenavComponent extends BaseComponent {
|
|
|
3531
3530
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3532
3531
|
*/
|
|
3533
3532
|
class ErrorComponent extends BaseComponent {
|
|
3534
|
-
static rootElement = 'aca-page-layout';
|
|
3535
|
-
genericError = this.getChild('aca-generic-error');
|
|
3536
|
-
genericErrorTitle = this.getChild('.generic-error__title');
|
|
3533
|
+
static { this.rootElement = 'aca-page-layout'; }
|
|
3537
3534
|
constructor(page) {
|
|
3538
3535
|
super(page, ErrorComponent.rootElement);
|
|
3536
|
+
this.genericError = this.getChild('aca-generic-error');
|
|
3537
|
+
this.genericErrorTitle = this.getChild('.generic-error__title');
|
|
3539
3538
|
}
|
|
3540
3539
|
}
|
|
3541
3540
|
|
|
@@ -3587,10 +3586,6 @@ class ErrorComponent extends BaseComponent {
|
|
|
3587
3586
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3588
3587
|
*/
|
|
3589
3588
|
class BasePage extends PlaywrightBase {
|
|
3590
|
-
pageUrl;
|
|
3591
|
-
urlRequest;
|
|
3592
|
-
snackBar;
|
|
3593
|
-
spinner;
|
|
3594
3589
|
constructor(page, pageUrl, urlRequest) {
|
|
3595
3590
|
super(page);
|
|
3596
3591
|
this.pageUrl = pageUrl;
|
|
@@ -3669,16 +3664,16 @@ class BasePage extends PlaywrightBase {
|
|
|
3669
3664
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3670
3665
|
*/
|
|
3671
3666
|
class LoginPage extends BasePage {
|
|
3672
|
-
static pageUrl = 'login';
|
|
3667
|
+
static { this.pageUrl = 'login'; }
|
|
3673
3668
|
constructor(page) {
|
|
3674
3669
|
super(page, LoginPage.pageUrl);
|
|
3670
|
+
this.username = this.page.locator('#username');
|
|
3671
|
+
this.password = this.page.locator('#password');
|
|
3672
|
+
this.submitButton = this.page.locator('#login-button');
|
|
3673
|
+
this.userProfileButton = this.page.locator('aca-user-menu button');
|
|
3674
|
+
this.userLogOutButton = this.page.locator('aca-logout button');
|
|
3675
|
+
this.passwordVisibility = this.page.locator('.adf-login-password-icon');
|
|
3675
3676
|
}
|
|
3676
|
-
username = this.page.locator('#username');
|
|
3677
|
-
password = this.page.locator('#password');
|
|
3678
|
-
submitButton = this.page.locator('#login-button');
|
|
3679
|
-
userProfileButton = this.page.locator('aca-user-menu button');
|
|
3680
|
-
userLogOutButton = this.page.locator('aca-logout button');
|
|
3681
|
-
passwordVisibility = this.page.locator('.adf-login-password-icon');
|
|
3682
3677
|
async loginUser(userData, options) {
|
|
3683
3678
|
if (options?.withNavigation) {
|
|
3684
3679
|
await this.navigate();
|
|
@@ -3729,17 +3724,17 @@ class LoginPage extends BasePage {
|
|
|
3729
3724
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3730
3725
|
*/
|
|
3731
3726
|
class NodesPage extends BasePage {
|
|
3732
|
-
static pageUrl = 'nodes';
|
|
3727
|
+
static { this.pageUrl = 'nodes'; }
|
|
3733
3728
|
constructor(page) {
|
|
3734
3729
|
super(page, NodesPage.pageUrl);
|
|
3730
|
+
this.rulesToolbar = new RulesToolbarComponent(this.page);
|
|
3731
|
+
this.manageRulesDialog = new ManageRulesDialogComponent(this.page);
|
|
3732
|
+
this.actionsDropdown = new ActionsDropdownComponent(this.page);
|
|
3733
|
+
this.conditionsDropdown = new ConditionComponent(this.page);
|
|
3734
|
+
this.manageRules = new ManageRules(this.page);
|
|
3735
|
+
this.contentNodeSelectorDialog = new ContentNodeSelectorDialog(this.page);
|
|
3736
|
+
this.linkRulesDialog = new LinkRulesDialog(this.page);
|
|
3735
3737
|
}
|
|
3736
|
-
rulesToolbar = new RulesToolbarComponent(this.page);
|
|
3737
|
-
manageRulesDialog = new ManageRulesDialogComponent(this.page);
|
|
3738
|
-
actionsDropdown = new ActionsDropdownComponent(this.page);
|
|
3739
|
-
conditionsDropdown = new ConditionComponent(this.page);
|
|
3740
|
-
manageRules = new ManageRules(this.page);
|
|
3741
|
-
contentNodeSelectorDialog = new ContentNodeSelectorDialog(this.page);
|
|
3742
|
-
linkRulesDialog = new LinkRulesDialog(this.page);
|
|
3743
3738
|
}
|
|
3744
3739
|
|
|
3745
3740
|
/*!
|
|
@@ -3766,32 +3761,32 @@ class NodesPage extends BasePage {
|
|
|
3766
3761
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3767
3762
|
*/
|
|
3768
3763
|
class PersonalFilesPage extends BasePage {
|
|
3769
|
-
static pageUrl = 'personal-files';
|
|
3764
|
+
static { this.pageUrl = 'personal-files'; }
|
|
3770
3765
|
constructor(page) {
|
|
3771
3766
|
super(page, PersonalFilesPage.pageUrl);
|
|
3767
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
3768
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
3769
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
3770
|
+
this.contentNodeSelector = new ContentNodeSelectorDialog(this.page);
|
|
3771
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
3772
|
+
this.viewer = new ViewerComponent(this.page);
|
|
3773
|
+
this.passwordDialog = new PasswordOverlayDialogComponent(this.page);
|
|
3774
|
+
this.viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
3775
|
+
this.breadcrumb = new Breadcrumb(this.page);
|
|
3776
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
3777
|
+
this.createFromTemplateDialogComponent = new CreateFromTemplateDialogComponent(this.page);
|
|
3778
|
+
this.pagination = new PaginationComponent(this.page);
|
|
3779
|
+
this.errorDialog = new ErrorComponent(this.page);
|
|
3780
|
+
this.shareDialog = new ShareDialogComponent(this.page);
|
|
3781
|
+
this.confirmDialog = new AdfConfirmDialogComponent(this.page);
|
|
3782
|
+
this.infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3783
|
+
this.uploadNewVersionDialog = new UploadNewVersionDialog(this.page);
|
|
3784
|
+
this.manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
3785
|
+
this.uploadDialog = new UploadDialog(this.page);
|
|
3786
|
+
this.snackBar = new SnackBarComponent(this.page);
|
|
3787
|
+
this.editDialog = new EditDialog(this.page);
|
|
3788
|
+
this.folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
|
3772
3789
|
}
|
|
3773
|
-
acaHeader = new AcaHeader(this.page);
|
|
3774
|
-
matMenu = new MatMenuComponent(this.page);
|
|
3775
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
3776
|
-
contentNodeSelector = new ContentNodeSelectorDialog(this.page);
|
|
3777
|
-
dataTable = new DataTableComponent(this.page);
|
|
3778
|
-
viewer = new ViewerComponent(this.page);
|
|
3779
|
-
passwordDialog = new PasswordOverlayDialogComponent(this.page);
|
|
3780
|
-
viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
3781
|
-
breadcrumb = new Breadcrumb(this.page);
|
|
3782
|
-
sidenav = new SidenavComponent(this.page);
|
|
3783
|
-
createFromTemplateDialogComponent = new CreateFromTemplateDialogComponent(this.page);
|
|
3784
|
-
pagination = new PaginationComponent(this.page);
|
|
3785
|
-
errorDialog = new ErrorComponent(this.page);
|
|
3786
|
-
shareDialog = new ShareDialogComponent(this.page);
|
|
3787
|
-
confirmDialog = new AdfConfirmDialogComponent(this.page);
|
|
3788
|
-
infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3789
|
-
uploadNewVersionDialog = new UploadNewVersionDialog(this.page);
|
|
3790
|
-
manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
3791
|
-
uploadDialog = new UploadDialog(this.page);
|
|
3792
|
-
snackBar = new SnackBarComponent(this.page);
|
|
3793
|
-
editDialog = new EditDialog(this.page);
|
|
3794
|
-
folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
|
3795
3790
|
async selectCreateFolder() {
|
|
3796
3791
|
await this.acaHeader.createButton.click();
|
|
3797
3792
|
await this.matMenu.createFolder.click();
|
|
@@ -3849,25 +3844,25 @@ class PersonalFilesPage extends BasePage {
|
|
|
3849
3844
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3850
3845
|
*/
|
|
3851
3846
|
class MyLibrariesPage extends BasePage {
|
|
3852
|
-
static pageUrl = 'libraries';
|
|
3847
|
+
static { this.pageUrl = 'libraries'; }
|
|
3853
3848
|
constructor(page) {
|
|
3854
3849
|
super(page, MyLibrariesPage.pageUrl);
|
|
3850
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
3851
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
3852
|
+
this.libraryDialog = new AdfLibraryDialogComponent(this.page);
|
|
3853
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
3854
|
+
this.libraryDetails = new AdfInfoDrawerComponent(this.page);
|
|
3855
|
+
this.infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3856
|
+
this.viewer = new ViewerComponent(this.page);
|
|
3857
|
+
this.viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
3858
|
+
this.copyMoveDialog = new ContentNodeSelectorDialog(this.page);
|
|
3859
|
+
this.breadcrumb = new Breadcrumb(this.page);
|
|
3860
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
3861
|
+
this.contentNodeSelector = new ContentNodeSelectorDialog(this.page);
|
|
3862
|
+
this.createFromTemplateDialogComponent = new CreateFromTemplateDialogComponent(this.page);
|
|
3863
|
+
this.confirmDialogComponent = new AdfConfirmDialogComponent(this.page);
|
|
3864
|
+
this.folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
|
3855
3865
|
}
|
|
3856
|
-
acaHeader = new AcaHeader(this.page);
|
|
3857
|
-
matMenu = new MatMenuComponent(this.page);
|
|
3858
|
-
libraryDialog = new AdfLibraryDialogComponent(this.page);
|
|
3859
|
-
dataTable = new DataTableComponent(this.page);
|
|
3860
|
-
libraryDetails = new AdfInfoDrawerComponent(this.page);
|
|
3861
|
-
infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3862
|
-
viewer = new ViewerComponent(this.page);
|
|
3863
|
-
viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
3864
|
-
copyMoveDialog = new ContentNodeSelectorDialog(this.page);
|
|
3865
|
-
breadcrumb = new Breadcrumb(this.page);
|
|
3866
|
-
sidenav = new SidenavComponent(this.page);
|
|
3867
|
-
contentNodeSelector = new ContentNodeSelectorDialog(this.page);
|
|
3868
|
-
createFromTemplateDialogComponent = new CreateFromTemplateDialogComponent(this.page);
|
|
3869
|
-
confirmDialogComponent = new AdfConfirmDialogComponent(this.page);
|
|
3870
|
-
folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
|
3871
3866
|
async selectCreateLibrary() {
|
|
3872
3867
|
await this.acaHeader.createButton.click();
|
|
3873
3868
|
await this.matMenu.createLibrary.click();
|
|
@@ -3902,20 +3897,20 @@ class MyLibrariesPage extends BasePage {
|
|
|
3902
3897
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3903
3898
|
*/
|
|
3904
3899
|
class RecentFilesPage extends BasePage {
|
|
3905
|
-
static pageUrl = 'recent-files';
|
|
3900
|
+
static { this.pageUrl = 'recent-files'; }
|
|
3906
3901
|
constructor(page) {
|
|
3907
3902
|
super(page, RecentFilesPage.pageUrl);
|
|
3903
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
3904
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
3905
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
3906
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
3907
|
+
this.viewer = new ViewerComponent(this.page);
|
|
3908
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
3909
|
+
this.breadcrumb = new Breadcrumb(this.page);
|
|
3910
|
+
this.infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3911
|
+
this.contentNodeSelector = new ContentNodeSelectorDialog(this.page);
|
|
3912
|
+
this.manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
3908
3913
|
}
|
|
3909
|
-
acaHeader = new AcaHeader(this.page);
|
|
3910
|
-
matMenu = new MatMenuComponent(this.page);
|
|
3911
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
3912
|
-
dataTable = new DataTableComponent(this.page);
|
|
3913
|
-
viewer = new ViewerComponent(this.page);
|
|
3914
|
-
sidenav = new SidenavComponent(this.page);
|
|
3915
|
-
breadcrumb = new Breadcrumb(this.page);
|
|
3916
|
-
infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3917
|
-
contentNodeSelector = new ContentNodeSelectorDialog(this.page);
|
|
3918
|
-
manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
3919
3914
|
}
|
|
3920
3915
|
|
|
3921
3916
|
/*!
|
|
@@ -3942,20 +3937,20 @@ class RecentFilesPage extends BasePage {
|
|
|
3942
3937
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3943
3938
|
*/
|
|
3944
3939
|
class SharedPage extends BasePage {
|
|
3945
|
-
static pageUrl = 'shared';
|
|
3940
|
+
static { this.pageUrl = 'shared'; }
|
|
3946
3941
|
constructor(page) {
|
|
3947
3942
|
super(page, SharedPage.pageUrl);
|
|
3943
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
3944
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
3945
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
3946
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
3947
|
+
this.viewer = new ViewerComponent(this.page);
|
|
3948
|
+
this.viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
3949
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
3950
|
+
this.breadcrumb = new Breadcrumb(this.page);
|
|
3951
|
+
this.infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3952
|
+
this.manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
3948
3953
|
}
|
|
3949
|
-
acaHeader = new AcaHeader(this.page);
|
|
3950
|
-
matMenu = new MatMenuComponent(this.page);
|
|
3951
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
3952
|
-
dataTable = new DataTableComponent(this.page);
|
|
3953
|
-
viewer = new ViewerComponent(this.page);
|
|
3954
|
-
viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
3955
|
-
sidenav = new SidenavComponent(this.page);
|
|
3956
|
-
breadcrumb = new Breadcrumb(this.page);
|
|
3957
|
-
infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
3958
|
-
manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
3959
3954
|
}
|
|
3960
3955
|
|
|
3961
3956
|
/*!
|
|
@@ -3982,15 +3977,15 @@ class SharedPage extends BasePage {
|
|
|
3982
3977
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3983
3978
|
*/
|
|
3984
3979
|
class SearchInDialogComponent extends BaseComponent {
|
|
3985
|
-
static rootElement = '.aca-search-in-panel';
|
|
3986
|
-
filesAndFoldersRadioButton = this.getChild('.aca-search-in-panel__radio label').getByText('Files and folders');
|
|
3987
|
-
librariesRadioButton = this.getChild('.aca-search-in-panel__radio label').getByText('Libraries');
|
|
3988
|
-
filesCheckbox = this.getChild('.aca-search-in-panel__checkboxes').getByLabel('Files');
|
|
3989
|
-
foldersCheckbox = this.getChild('.aca-search-in-panel__checkboxes').getByLabel('Folders');
|
|
3990
|
-
applyButton = this.getChild('button', { hasText: 'Apply' });
|
|
3991
|
-
resetButton = this.getChild('button', { hasText: 'Reset' });
|
|
3980
|
+
static { this.rootElement = '.aca-search-in-panel'; }
|
|
3992
3981
|
constructor(page, rootElement = SearchInDialogComponent.rootElement) {
|
|
3993
3982
|
super(page, rootElement);
|
|
3983
|
+
this.filesAndFoldersRadioButton = this.getChild('.aca-search-in-panel__radio label').getByText('Files and folders');
|
|
3984
|
+
this.librariesRadioButton = this.getChild('.aca-search-in-panel__radio label').getByText('Libraries');
|
|
3985
|
+
this.filesCheckbox = this.getChild('.aca-search-in-panel__checkboxes').getByLabel('Files');
|
|
3986
|
+
this.foldersCheckbox = this.getChild('.aca-search-in-panel__checkboxes').getByLabel('Folders');
|
|
3987
|
+
this.applyButton = this.getChild('button', { hasText: 'Apply' });
|
|
3988
|
+
this.resetButton = this.getChild('button', { hasText: 'Reset' });
|
|
3994
3989
|
}
|
|
3995
3990
|
async isFoldersOptionChecked() {
|
|
3996
3991
|
return this.foldersCheckbox.isChecked();
|
|
@@ -4058,31 +4053,31 @@ class SearchInDialogComponent extends BaseComponent {
|
|
|
4058
4053
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
4059
4054
|
*/
|
|
4060
4055
|
class SearchPage extends BasePage {
|
|
4061
|
-
static pageUrl = 'search';
|
|
4056
|
+
static { this.pageUrl = 'search'; }
|
|
4062
4057
|
constructor(page) {
|
|
4063
4058
|
super(page, SearchPage.pageUrl);
|
|
4059
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
4060
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
4061
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4062
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
4063
|
+
this.viewer = new ViewerComponent(this.page);
|
|
4064
|
+
this.searchInputComponent = new SearchInputComponent(this.page);
|
|
4065
|
+
this.searchInDialog = new SearchInDialogComponent(this.page);
|
|
4066
|
+
this.searchSortingPicker = new SearchSortingPicker(this.page);
|
|
4067
|
+
this.searchFilters = new SearchFilters(this.page);
|
|
4068
|
+
this.searchFiltersTags = new SearchFiltersTags(this.page);
|
|
4069
|
+
this.searchFiltersCategories = new SearchFiltersCategories(this.page);
|
|
4070
|
+
this.searchFiltersDate = new SearchFiltersDate(this.page);
|
|
4071
|
+
this.searchFiltersLocation = new SearchFiltersLocation(this.page);
|
|
4072
|
+
this.searchFiltersProperties = new SearchFiltersProperties(this.page);
|
|
4073
|
+
this.searchFiltersLogic = new SearchFiltersLogic(this.page);
|
|
4074
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
4075
|
+
this.confirmDialogComponent = new AdfConfirmDialogComponent(this.page);
|
|
4076
|
+
this.uploadNewVersionDialog = new UploadNewVersionDialog(this.page);
|
|
4077
|
+
this.manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
4078
|
+
this.folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
|
4079
|
+
this.searchMenuCard = new SearchMenuCard(this.page);
|
|
4064
4080
|
}
|
|
4065
|
-
acaHeader = new AcaHeader(this.page);
|
|
4066
|
-
matMenu = new MatMenuComponent(this.page);
|
|
4067
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4068
|
-
dataTable = new DataTableComponent(this.page);
|
|
4069
|
-
viewer = new ViewerComponent(this.page);
|
|
4070
|
-
searchInputComponent = new SearchInputComponent(this.page);
|
|
4071
|
-
searchInDialog = new SearchInDialogComponent(this.page);
|
|
4072
|
-
searchSortingPicker = new SearchSortingPicker(this.page);
|
|
4073
|
-
searchFilters = new SearchFilters(this.page);
|
|
4074
|
-
searchFiltersTags = new SearchFiltersTags(this.page);
|
|
4075
|
-
searchFiltersCategories = new SearchFiltersCategories(this.page);
|
|
4076
|
-
searchFiltersDate = new SearchFiltersDate(this.page);
|
|
4077
|
-
searchFiltersLocation = new SearchFiltersLocation(this.page);
|
|
4078
|
-
searchFiltersProperties = new SearchFiltersProperties(this.page);
|
|
4079
|
-
searchFiltersLogic = new SearchFiltersLogic(this.page);
|
|
4080
|
-
sidenav = new SidenavComponent(this.page);
|
|
4081
|
-
confirmDialogComponent = new AdfConfirmDialogComponent(this.page);
|
|
4082
|
-
uploadNewVersionDialog = new UploadNewVersionDialog(this.page);
|
|
4083
|
-
manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
4084
|
-
folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
|
4085
|
-
searchMenuCard = new SearchMenuCard(this.page);
|
|
4086
4081
|
async searchWithin(searchText, searchType) {
|
|
4087
4082
|
if (!(await this.searchInputComponent.searchInput.isVisible())) {
|
|
4088
4083
|
await this.acaHeader.searchButton.click();
|
|
@@ -4138,21 +4133,21 @@ class SearchPage extends BasePage {
|
|
|
4138
4133
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
4139
4134
|
*/
|
|
4140
4135
|
class FavoritesPage extends BasePage {
|
|
4141
|
-
static pageUrl = 'favorites';
|
|
4136
|
+
static { this.pageUrl = 'favorites'; }
|
|
4142
4137
|
constructor(page) {
|
|
4143
4138
|
super(page, FavoritesPage.pageUrl);
|
|
4139
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
4140
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
4141
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4142
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
4143
|
+
this.viewer = new ViewerComponent(this.page);
|
|
4144
|
+
this.viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
4145
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
4146
|
+
this.pagination = new PaginationComponent(this.page);
|
|
4147
|
+
this.breadcrumb = new Breadcrumb(this.page);
|
|
4148
|
+
this.infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
4149
|
+
this.manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
4144
4150
|
}
|
|
4145
|
-
acaHeader = new AcaHeader(this.page);
|
|
4146
|
-
matMenu = new MatMenuComponent(this.page);
|
|
4147
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4148
|
-
dataTable = new DataTableComponent(this.page);
|
|
4149
|
-
viewer = new ViewerComponent(this.page);
|
|
4150
|
-
viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
4151
|
-
sidenav = new SidenavComponent(this.page);
|
|
4152
|
-
pagination = new PaginationComponent(this.page);
|
|
4153
|
-
breadcrumb = new Breadcrumb(this.page);
|
|
4154
|
-
infoDrawer = new AdfInfoDrawerComponent(this.page);
|
|
4155
|
-
manageVersionsDialog = new ManageVersionsDialog(this.page);
|
|
4156
4151
|
async waitForPageLoad() {
|
|
4157
4152
|
await this.page.waitForURL(`**/${FavoritesPage.pageUrl}`);
|
|
4158
4153
|
}
|
|
@@ -4182,20 +4177,20 @@ class FavoritesPage extends BasePage {
|
|
|
4182
4177
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
4183
4178
|
*/
|
|
4184
4179
|
class TrashPage extends BasePage {
|
|
4185
|
-
static pageUrl = 'trashcan';
|
|
4180
|
+
static { this.pageUrl = 'trashcan'; }
|
|
4186
4181
|
constructor(page) {
|
|
4187
4182
|
super(page, TrashPage.pageUrl);
|
|
4183
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
4184
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
4185
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4186
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
4187
|
+
this.viewer = new ViewerComponent(this.page);
|
|
4188
|
+
this.viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
4189
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
4190
|
+
this.breadcrumb = new Breadcrumb(this.page);
|
|
4191
|
+
this.pagination = new PaginationComponent(this.page);
|
|
4192
|
+
this.deleteDialog = new AdfDeleteTrashComponent(this.page);
|
|
4188
4193
|
}
|
|
4189
|
-
acaHeader = new AcaHeader(this.page);
|
|
4190
|
-
matMenu = new MatMenuComponent(this.page);
|
|
4191
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4192
|
-
dataTable = new DataTableComponent(this.page);
|
|
4193
|
-
viewer = new ViewerComponent(this.page);
|
|
4194
|
-
viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
4195
|
-
sidenav = new SidenavComponent(this.page);
|
|
4196
|
-
breadcrumb = new Breadcrumb(this.page);
|
|
4197
|
-
pagination = new PaginationComponent(this.page);
|
|
4198
|
-
deleteDialog = new AdfDeleteTrashComponent(this.page);
|
|
4199
4194
|
}
|
|
4200
4195
|
|
|
4201
4196
|
/*!
|
|
@@ -4222,18 +4217,18 @@ class TrashPage extends BasePage {
|
|
|
4222
4217
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
4223
4218
|
*/
|
|
4224
4219
|
class FavoritesLibrariesPage extends BasePage {
|
|
4225
|
-
static pageUrl = 'favorite/libraries';
|
|
4220
|
+
static { this.pageUrl = 'favorite/libraries'; }
|
|
4226
4221
|
constructor(page) {
|
|
4227
4222
|
super(page, FavoritesLibrariesPage.pageUrl);
|
|
4223
|
+
this.acaHeader = new AcaHeader(this.page);
|
|
4224
|
+
this.matMenu = new MatMenuComponent(this.page);
|
|
4225
|
+
this.folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4226
|
+
this.dataTable = new DataTableComponent(this.page);
|
|
4227
|
+
this.viewer = new ViewerComponent(this.page);
|
|
4228
|
+
this.viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
4229
|
+
this.sidenav = new SidenavComponent(this.page);
|
|
4230
|
+
this.confirmDialogComponent = new AdfConfirmDialogComponent(this.page);
|
|
4228
4231
|
}
|
|
4229
|
-
acaHeader = new AcaHeader(this.page);
|
|
4230
|
-
matMenu = new MatMenuComponent(this.page);
|
|
4231
|
-
folderDialog = new AdfFolderDialogComponent(this.page);
|
|
4232
|
-
dataTable = new DataTableComponent(this.page);
|
|
4233
|
-
viewer = new ViewerComponent(this.page);
|
|
4234
|
-
viewerDialog = new ViewerOverlayDialogComponent(this.page);
|
|
4235
|
-
sidenav = new SidenavComponent(this.page);
|
|
4236
|
-
confirmDialogComponent = new AdfConfirmDialogComponent(this.page);
|
|
4237
4232
|
}
|
|
4238
4233
|
|
|
4239
4234
|
/*!
|
|
@@ -4638,13 +4633,6 @@ const getGlobalConfig = {
|
|
|
4638
4633
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
4639
4634
|
*/
|
|
4640
4635
|
class Person {
|
|
4641
|
-
id;
|
|
4642
|
-
password;
|
|
4643
|
-
firstName;
|
|
4644
|
-
lastName;
|
|
4645
|
-
email;
|
|
4646
|
-
enabled;
|
|
4647
|
-
properties;
|
|
4648
4636
|
constructor(user) {
|
|
4649
4637
|
this.id = user.username;
|
|
4650
4638
|
this.password = user.password || user.username;
|
|
@@ -4687,26 +4675,6 @@ const config = {
|
|
|
4687
4675
|
contextRoot: 'alfresco'
|
|
4688
4676
|
};
|
|
4689
4677
|
class ApiClientFactory {
|
|
4690
|
-
alfrescoApi;
|
|
4691
|
-
sites;
|
|
4692
|
-
upload;
|
|
4693
|
-
nodes;
|
|
4694
|
-
people;
|
|
4695
|
-
adminUsers;
|
|
4696
|
-
adminTenant;
|
|
4697
|
-
groups;
|
|
4698
|
-
queries;
|
|
4699
|
-
search;
|
|
4700
|
-
securityGroupsApi;
|
|
4701
|
-
securityMarksApi;
|
|
4702
|
-
contentClient;
|
|
4703
|
-
share;
|
|
4704
|
-
favorites;
|
|
4705
|
-
trashCan;
|
|
4706
|
-
commentsApi;
|
|
4707
|
-
queriesApi;
|
|
4708
|
-
categoriesApi;
|
|
4709
|
-
tagsApi;
|
|
4710
4678
|
constructor() {
|
|
4711
4679
|
this.alfrescoApi = new AlfrescoApi(config);
|
|
4712
4680
|
}
|
|
@@ -4807,7 +4775,6 @@ class ApiClientFactory {
|
|
|
4807
4775
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
4808
4776
|
*/
|
|
4809
4777
|
class RulesApi {
|
|
4810
|
-
apiService;
|
|
4811
4778
|
constructor() {
|
|
4812
4779
|
this.apiService = new ApiClientFactory();
|
|
4813
4780
|
}
|
|
@@ -4946,42 +4913,38 @@ class RulesApi {
|
|
|
4946
4913
|
}
|
|
4947
4914
|
}
|
|
4948
4915
|
class ActionTypes {
|
|
4949
|
-
|
|
4950
|
-
value;
|
|
4951
|
-
static ADDFEATURES = new ActionTypes('ADDFEATURES', {
|
|
4916
|
+
static { this.ADDFEATURES = new ActionTypes('ADDFEATURES', {
|
|
4952
4917
|
actionDefinitionId: 'add-features',
|
|
4953
4918
|
params: { 'aspect-name': 'cm:thumbnailed' }
|
|
4954
|
-
});
|
|
4955
|
-
static CHECKIN = new ActionTypes('CHECKIN', {
|
|
4919
|
+
}); }
|
|
4920
|
+
static { this.CHECKIN = new ActionTypes('CHECKIN', {
|
|
4956
4921
|
actionDefinitionId: 'check-in',
|
|
4957
4922
|
params: {
|
|
4958
4923
|
description: 'test',
|
|
4959
4924
|
minorChange: true
|
|
4960
4925
|
}
|
|
4961
|
-
});
|
|
4962
|
-
static SPECIALISETYPE = new ActionTypes('SPECIALISETYPE', {
|
|
4926
|
+
}); }
|
|
4927
|
+
static { this.SPECIALISETYPE = new ActionTypes('SPECIALISETYPE', {
|
|
4963
4928
|
actionDefinitionId: 'specialise-type',
|
|
4964
4929
|
params: { 'type-name': 'sys:base' }
|
|
4965
|
-
});
|
|
4966
|
-
static SETPROPERTYVALUE = new ActionTypes('SETPROPERTYVALUE', {
|
|
4930
|
+
}); }
|
|
4931
|
+
static { this.SETPROPERTYVALUE = new ActionTypes('SETPROPERTYVALUE', {
|
|
4967
4932
|
actionDefinitionId: 'set-property-value',
|
|
4968
4933
|
params: { property: 'dl:ganttPercentComplete', value: 'test' }
|
|
4969
|
-
});
|
|
4970
|
-
static actions = [
|
|
4934
|
+
}); }
|
|
4935
|
+
static { this.actions = [
|
|
4971
4936
|
ActionTypes.ADDFEATURES.value,
|
|
4972
4937
|
ActionTypes.CHECKIN.value,
|
|
4973
4938
|
ActionTypes.SPECIALISETYPE.value,
|
|
4974
4939
|
ActionTypes.SETPROPERTYVALUE.value
|
|
4975
|
-
];
|
|
4940
|
+
]; }
|
|
4976
4941
|
constructor(key, value) {
|
|
4977
4942
|
this.key = key;
|
|
4978
4943
|
this.value = value;
|
|
4979
4944
|
}
|
|
4980
4945
|
}
|
|
4981
4946
|
class ConditionsTypes {
|
|
4982
|
-
|
|
4983
|
-
value;
|
|
4984
|
-
static MIMETYPE = new ConditionsTypes('MIMETYPE', {
|
|
4947
|
+
static { this.MIMETYPE = new ConditionsTypes('MIMETYPE', {
|
|
4985
4948
|
inverted: false,
|
|
4986
4949
|
booleanMode: 'and',
|
|
4987
4950
|
simpleConditions: [
|
|
@@ -4991,8 +4954,8 @@ class ConditionsTypes {
|
|
|
4991
4954
|
parameter: 'video/3gpp'
|
|
4992
4955
|
}
|
|
4993
4956
|
]
|
|
4994
|
-
});
|
|
4995
|
-
static CMNAME = new ConditionsTypes('CM:NAME', {
|
|
4957
|
+
}); }
|
|
4958
|
+
static { this.CMNAME = new ConditionsTypes('CM:NAME', {
|
|
4996
4959
|
inverted: false,
|
|
4997
4960
|
booleanMode: 'and',
|
|
4998
4961
|
simpleConditions: [
|
|
@@ -5002,8 +4965,8 @@ class ConditionsTypes {
|
|
|
5002
4965
|
parameter: 'testname'
|
|
5003
4966
|
}
|
|
5004
4967
|
]
|
|
5005
|
-
});
|
|
5006
|
-
static SIZE = new ConditionsTypes('SIZE', {
|
|
4968
|
+
}); }
|
|
4969
|
+
static { this.SIZE = new ConditionsTypes('SIZE', {
|
|
5007
4970
|
inverted: false,
|
|
5008
4971
|
booleanMode: 'and',
|
|
5009
4972
|
simpleConditions: [
|
|
@@ -5013,8 +4976,8 @@ class ConditionsTypes {
|
|
|
5013
4976
|
parameter: '345'
|
|
5014
4977
|
}
|
|
5015
4978
|
]
|
|
5016
|
-
});
|
|
5017
|
-
static TAG = new ConditionsTypes('TAG', {
|
|
4979
|
+
}); }
|
|
4980
|
+
static { this.TAG = new ConditionsTypes('TAG', {
|
|
5018
4981
|
inverted: false,
|
|
5019
4982
|
booleanMode: 'and',
|
|
5020
4983
|
simpleConditions: [
|
|
@@ -5024,8 +4987,8 @@ class ConditionsTypes {
|
|
|
5024
4987
|
parameter: 'testtag'
|
|
5025
4988
|
}
|
|
5026
4989
|
]
|
|
5027
|
-
});
|
|
5028
|
-
static conditions = [ConditionsTypes.MIMETYPE.value, ConditionsTypes.CMNAME.value, ConditionsTypes.SIZE.value, ConditionsTypes.TAG.value];
|
|
4990
|
+
}); }
|
|
4991
|
+
static { this.conditions = [ConditionsTypes.MIMETYPE.value, ConditionsTypes.CMNAME.value, ConditionsTypes.SIZE.value, ConditionsTypes.TAG.value]; }
|
|
5029
4992
|
constructor(key, value) {
|
|
5030
4993
|
this.key = key;
|
|
5031
4994
|
this.value = value;
|
|
@@ -5056,7 +5019,6 @@ class ConditionsTypes {
|
|
|
5056
5019
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
5057
5020
|
*/
|
|
5058
5021
|
class FileActionsApi {
|
|
5059
|
-
apiService;
|
|
5060
5022
|
constructor() {
|
|
5061
5023
|
this.apiService = new ApiClientFactory();
|
|
5062
5024
|
}
|
|
@@ -5274,7 +5236,6 @@ class FileActionsApi {
|
|
|
5274
5236
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
5275
5237
|
*/
|
|
5276
5238
|
class SharedLinksApi {
|
|
5277
|
-
apiService;
|
|
5278
5239
|
constructor() {
|
|
5279
5240
|
this.apiService = new ApiClientFactory();
|
|
5280
5241
|
}
|
|
@@ -5408,7 +5369,6 @@ class SharedLinksApi {
|
|
|
5408
5369
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
5409
5370
|
*/
|
|
5410
5371
|
class FavoritesPageApi {
|
|
5411
|
-
apiService;
|
|
5412
5372
|
constructor() {
|
|
5413
5373
|
this.apiService = new ApiClientFactory();
|
|
5414
5374
|
}
|
|
@@ -5602,7 +5562,6 @@ function flattenNodeContentTree(content, relativePath = '/') {
|
|
|
5602
5562
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
5603
5563
|
*/
|
|
5604
5564
|
class NodesApi {
|
|
5605
|
-
apiService;
|
|
5606
5565
|
constructor() {
|
|
5607
5566
|
this.apiService = new ApiClientFactory();
|
|
5608
5567
|
}
|
|
@@ -6037,7 +5996,6 @@ class NodesApi {
|
|
|
6037
5996
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
6038
5997
|
*/
|
|
6039
5998
|
class SitesApi {
|
|
6040
|
-
apiService;
|
|
6041
5999
|
constructor() {
|
|
6042
6000
|
this.apiService = new ApiClientFactory();
|
|
6043
6001
|
}
|
|
@@ -6191,7 +6149,6 @@ class SitesApi {
|
|
|
6191
6149
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
6192
6150
|
*/
|
|
6193
6151
|
class SearchPageApi {
|
|
6194
|
-
apiService;
|
|
6195
6152
|
constructor() {
|
|
6196
6153
|
this.apiService = new ApiClientFactory();
|
|
6197
6154
|
}
|
|
@@ -6263,7 +6220,9 @@ class SearchPageApi {
|
|
|
6263
6220
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
6264
6221
|
*/
|
|
6265
6222
|
class TrashcanApi {
|
|
6266
|
-
|
|
6223
|
+
constructor() {
|
|
6224
|
+
this.apiService = new ApiClientFactory();
|
|
6225
|
+
}
|
|
6267
6226
|
static async initialize(userName, password) {
|
|
6268
6227
|
const classObj = new TrashcanApi();
|
|
6269
6228
|
await classObj.apiService.setUpAcaBackend(userName, password);
|
|
@@ -6314,7 +6273,6 @@ class TrashcanApi {
|
|
|
6314
6273
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
6315
6274
|
*/
|
|
6316
6275
|
class QueriesApi {
|
|
6317
|
-
apiService;
|
|
6318
6276
|
constructor() {
|
|
6319
6277
|
this.apiService = new ApiClientFactory();
|
|
6320
6278
|
}
|
|
@@ -6382,7 +6340,6 @@ class QueriesApi {
|
|
|
6382
6340
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
6383
6341
|
*/
|
|
6384
6342
|
class CategoriesApi {
|
|
6385
|
-
apiService;
|
|
6386
6343
|
constructor() {
|
|
6387
6344
|
this.apiService = new ApiClientFactory();
|
|
6388
6345
|
}
|
|
@@ -6447,7 +6404,6 @@ class CategoriesApi {
|
|
|
6447
6404
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
6448
6405
|
*/
|
|
6449
6406
|
class TagsApi {
|
|
6450
|
-
apiService;
|
|
6451
6407
|
constructor() {
|
|
6452
6408
|
this.apiService = new ApiClientFactory();
|
|
6453
6409
|
}
|
|
@@ -6570,17 +6526,11 @@ function generateRandomCharset(length = 8, charSet) {
|
|
|
6570
6526
|
return text;
|
|
6571
6527
|
}
|
|
6572
6528
|
class UserModel {
|
|
6573
|
-
firstName = generateRandomCharset(7, LOWER_CASE_ALPHA);
|
|
6574
|
-
lastName = generateRandomCharset(7, LOWER_CASE_ALPHA);
|
|
6575
|
-
password = generateRandomCharset(7, LOWER_CASE_ALPHA);
|
|
6576
|
-
email;
|
|
6577
|
-
username;
|
|
6578
|
-
idIdentityService;
|
|
6579
|
-
type = 'enterprise';
|
|
6580
|
-
tenantId;
|
|
6581
|
-
company;
|
|
6582
|
-
id;
|
|
6583
6529
|
constructor(details = {}) {
|
|
6530
|
+
this.firstName = generateRandomCharset(7, LOWER_CASE_ALPHA);
|
|
6531
|
+
this.lastName = generateRandomCharset(7, LOWER_CASE_ALPHA);
|
|
6532
|
+
this.password = generateRandomCharset(7, LOWER_CASE_ALPHA);
|
|
6533
|
+
this.type = 'enterprise';
|
|
6584
6534
|
const EMAIL_DOMAIN = 'alfresco';
|
|
6585
6535
|
this.firstName = details.firstName ?? this.firstName;
|
|
6586
6536
|
this.lastName = details.lastName ?? this.lastName;
|