mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-11051] getChild usage refactored (#5056)
* [ACS-11051] getChild usage refactored * [ACS-11051] sonar fix 1 * [ACS-11051] test fixes 1 * [ACS-11051] test fixes 2 * [ACS-11051] review fixes 1 * [ACS-11051] review fixes 2
This commit is contained in:
@@ -80,7 +80,7 @@ test.describe('Edit offline - on Personal Files', () => {
|
|||||||
expect(download.suggestedFilename()).toBe(file1);
|
expect(download.suggestedFilename()).toBe(file1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('XAT-5305] Lock information is displayed', async ({ personalFiles }) => {
|
test('[XAT-5305] Lock information is displayed', async ({ personalFiles }) => {
|
||||||
expect(await personalFiles.dataTable.isItemPresent(fileLocked2)).toBe(true);
|
expect(await personalFiles.dataTable.isItemPresent(fileLocked2)).toBe(true);
|
||||||
expect(await personalFiles.dataTable.getLockOwner(fileLocked2)).toContain(username);
|
expect(await personalFiles.dataTable.getLockOwner(fileLocked2)).toContain(username);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-883] Create a rule with symbols in its name and description', async ({ personalFiles, nodesPage }) => {
|
test('[XAT-883] Create a rule with symbols in its name and description', async ({ personalFiles, nodesPage }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(testString);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(testString);
|
||||||
await nodesPage.manageRulesDialog.ruleDescriptionInputLocator.fill(testString);
|
await nodesPage.manageRulesDialog.ruleDescriptionInputLocator.fill(testString);
|
||||||
|
|
||||||
@@ -84,13 +84,13 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-884] Create a rule and link it to an existing folder', async ({ personalFiles, nodesPage }) => {
|
test('[XAT-884] Create a rule and link it to an existing folder', async ({ personalFiles, nodesPage }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
||||||
await nodesPage.manageRulesDialog.createRuleButton.click();
|
await nodesPage.manageRulesDialog.createRuleButton.click();
|
||||||
|
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName2Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName2Id}/rules` });
|
||||||
await nodesPage.toolbar.clickLinkRulesButton();
|
await nodesPage.rulesToolbar.clickLinkRulesButton();
|
||||||
await nodesPage.linkRulesDialog.waitForLinkRules();
|
await nodesPage.linkRulesDialog.waitForLinkRules();
|
||||||
await nodesPage.linkRulesDialog.getFolderIcon.click();
|
await nodesPage.linkRulesDialog.getFolderIcon.click();
|
||||||
await nodesPage.linkRulesDialog.getOptionLocator(username).click();
|
await nodesPage.linkRulesDialog.getOptionLocator(username).click();
|
||||||
@@ -102,7 +102,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-885] Create a rule in a folder and inherit it in a subfolder (Rule applies to subfolders)', async ({ personalFiles, nodesPage }) => {
|
test('[XAT-885] Create a rule in a folder and inherit it in a subfolder (Rule applies to subfolders)', async ({ personalFiles, nodesPage }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
||||||
await nodesPage.manageRulesDialog.ruleSubfoldersCheckbox.click();
|
await nodesPage.manageRulesDialog.ruleSubfoldersCheckbox.click();
|
||||||
@@ -114,7 +114,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-886] Create a rule and press cancel', async ({ personalFiles, nodesPage }) => {
|
test('[XAT-886] Create a rule and press cancel', async ({ personalFiles, nodesPage }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await expect(nodesPage.manageRulesDialog.createRuleButton).toBeDisabled();
|
await expect(nodesPage.manageRulesDialog.createRuleButton).toBeDisabled();
|
||||||
await nodesPage.manageRulesDialog.cancelRuleButton.click();
|
await nodesPage.manageRulesDialog.cancelRuleButton.click();
|
||||||
expect(nodesPage.manageRules.checkIfRuleListEmpty()).toBeTruthy();
|
expect(nodesPage.manageRules.checkIfRuleListEmpty()).toBeTruthy();
|
||||||
@@ -122,7 +122,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-887] Create a disabled rule', async ({ personalFiles, nodesPage }) => {
|
test('[XAT-887] Create a disabled rule', async ({ personalFiles, nodesPage }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
||||||
await nodesPage.manageRulesDialog.ruleDisableCheckbox.click();
|
await nodesPage.manageRulesDialog.ruleDisableCheckbox.click();
|
||||||
@@ -137,7 +137,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
const simpleWorkFlow = 'accept reject';
|
const simpleWorkFlow = 'accept reject';
|
||||||
|
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
|
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.IncrementCounter, 0);
|
||||||
@@ -157,7 +157,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-889] Create a rule which runs when items are deleted or leave a folder', async ({ nodesPage, personalFiles }) => {
|
test('[XAT-889] Create a rule which runs when items are deleted or leave a folder', async ({ nodesPage, personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.manageRulesDialog.whenCreatedCheckbox.click();
|
await nodesPage.manageRulesDialog.whenCreatedCheckbox.click();
|
||||||
await nodesPage.manageRulesDialog.whenDeletedCheckbox.click();
|
await nodesPage.manageRulesDialog.whenDeletedCheckbox.click();
|
||||||
@@ -182,7 +182,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-890] Create a rule which adds multiple aspects when its ran', async ({ nodesPage, personalFiles }) => {
|
test('[XAT-890] Create a rule which adds multiple aspects when its ran', async ({ nodesPage, personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
||||||
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
||||||
@@ -206,7 +206,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-891] Prevent rule creation after clicking on cancel during selecting destination folder', async ({ nodesPage, personalFiles }) => {
|
test('[XAT-891] Prevent rule creation after clicking on cancel during selecting destination folder', async ({ nodesPage, personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
||||||
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
||||||
@@ -219,7 +219,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-892] Prevent rule creation when missing any required field for action', async ({ nodesPage, personalFiles }) => {
|
test('[XAT-892] Prevent rule creation when missing any required field for action', async ({ nodesPage, personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
||||||
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
||||||
@@ -230,7 +230,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-893] Removing values from required fields should restore disabled state for Create button', async ({ nodesPage, personalFiles }) => {
|
test('[XAT-893] Removing values from required fields should restore disabled state for Create button', async ({ nodesPage, personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
||||||
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
||||||
@@ -241,7 +241,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-894] Create rule with filled required fields and empty optional fields', async ({ nodesPage, personalFiles }) => {
|
test('[XAT-894] Create rule with filled required fields and empty optional fields', async ({ nodesPage, personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.AddAspect, 0);
|
||||||
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
await nodesPage.actionsDropdown.insertAddAspectActionValues('Classifiable', 0);
|
||||||
@@ -255,7 +255,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
nodesPage
|
nodesPage
|
||||||
}) => {
|
}) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.conditionsDropdown.addCondition(Field.Size, specialChars, 0, Comparator.Equals);
|
await nodesPage.conditionsDropdown.addCondition(Field.Size, specialChars, 0, Comparator.Equals);
|
||||||
await nodesPage.conditionsDropdown.addCondition(Field.Name, specialChars, 1, Comparator.Equals);
|
await nodesPage.conditionsDropdown.addCondition(Field.Name, specialChars, 1, Comparator.Equals);
|
||||||
@@ -270,7 +270,7 @@ test.describe('Folder Rules Actions', () => {
|
|||||||
|
|
||||||
test('[XAT-896] Create a rule with multiple groups utilising all available comparators and conditions', async ({ personalFiles, nodesPage }) => {
|
test('[XAT-896] Create a rule with multiple groups utilising all available comparators and conditions', async ({ personalFiles, nodesPage }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${randomFolderName1Id}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(randomRuleName);
|
||||||
await nodesPage.conditionsDropdown.addConditionGroup(Field.Size, specialChars, 0, Comparator.Equals);
|
await nodesPage.conditionsDropdown.addConditionGroup(Field.Size, specialChars, 0, Comparator.Equals);
|
||||||
await nodesPage.conditionsDropdown.addConditionGroup(Field.Name, specialChars, 1, Comparator.Equals);
|
await nodesPage.conditionsDropdown.addConditionGroup(Field.Name, specialChars, 1, Comparator.Equals);
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ async function setupTransformationTest(
|
|||||||
await nodesApi.createFolder(destinationFolderName);
|
await nodesApi.createFolder(destinationFolderName);
|
||||||
|
|
||||||
await personalFiles.navigate({ remoteUrl: `#/nodes/${parentFolderId}/rules` });
|
await personalFiles.navigate({ remoteUrl: `#/nodes/${parentFolderId}/rules` });
|
||||||
await nodesPage.toolbar.clickCreateRuleButton();
|
await nodesPage.rulesToolbar.clickCreateRuleButton();
|
||||||
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(testString);
|
await nodesPage.manageRulesDialog.ruleNameInputLocator.fill(testString);
|
||||||
await nodesPage.manageRulesDialog.ruleDescriptionInputLocator.fill(testString);
|
await nodesPage.manageRulesDialog.ruleDescriptionInputLocator.fill(testString);
|
||||||
await nodesPage.actionsDropdown.selectAction(ActionType.TransformAndCopyContent, 0);
|
await nodesPage.actionsDropdown.selectAction(ActionType.TransformAndCopyContent, 0);
|
||||||
|
|||||||
@@ -48,30 +48,30 @@ test.describe('Sidebar', () => {
|
|||||||
|
|
||||||
test('[XAT-5387] The sidenav can be expanded when search results page is displayed', async ({ personalFiles }) => {
|
test('[XAT-5387] The sidenav can be expanded when search results page is displayed', async ({ personalFiles }) => {
|
||||||
await personalFiles.navigate({ remoteUrl: `#/search;q=test` });
|
await personalFiles.navigate({ remoteUrl: `#/search;q=test` });
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar expanded').toBeHidden();
|
||||||
await personalFiles.sidenav.expandSideNav();
|
await personalFiles.sidenav.expandSideNav();
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('[XAT-5384] Sidenav state is preserved on page refresh', async ({ personalFiles }) => {
|
test('[XAT-5384] Sidenav state is preserved on page refresh', async ({ personalFiles }) => {
|
||||||
await personalFiles.navigate();
|
await personalFiles.navigate();
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
||||||
await personalFiles.reload();
|
await personalFiles.reload();
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
||||||
|
|
||||||
await personalFiles.sidenav.collapseSideNav();
|
await personalFiles.sidenav.collapseSideNav();
|
||||||
|
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar expanded').toBeHidden();
|
||||||
await personalFiles.reload();
|
await personalFiles.reload();
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar expanded').toBeHidden();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('[XAT-5382] Sidenav can be collapsed and expanded', async ({ personalFiles }) => {
|
test('[XAT-5382] Sidenav can be collapsed and expanded', async ({ personalFiles }) => {
|
||||||
await personalFiles.navigate();
|
await personalFiles.navigate();
|
||||||
await personalFiles.sidenav.collapseSideNav();
|
await personalFiles.sidenav.collapseSideNav();
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar expanded').toBeHidden();
|
||||||
await personalFiles.sidenav.expandSideNav();
|
await personalFiles.sidenav.expandSideNav();
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('[XAT-5386] The sidenav returns to the default state when navigating away from the search results page', async ({
|
test('[XAT-5386] The sidenav returns to the default state when navigating away from the search results page', async ({
|
||||||
@@ -81,6 +81,6 @@ test.describe('Sidebar', () => {
|
|||||||
await personalFiles.navigate({ remoteUrl: `#/search;q=test` });
|
await personalFiles.navigate({ remoteUrl: `#/search;q=test` });
|
||||||
await searchPage.searchInput.searchCloseButton.click();
|
await searchPage.searchInput.searchCloseButton.click();
|
||||||
await searchPage.sidenav.expandedSidenav.waitFor({ state: 'attached' });
|
await searchPage.sidenav.expandedSidenav.waitFor({ state: 'attached' });
|
||||||
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
|
await expect(personalFiles.sidenav.expandedSidenav, 'Sidebar not expanded').toBeVisible();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ test.describe('Single click on item name', () => {
|
|||||||
|
|
||||||
test('[XAT-4897] Navigate inside the folder when clicking the hyperlink - on Personal Files', async ({ personalFiles }) => {
|
test('[XAT-4897] Navigate inside the folder when clicking the hyperlink - on Personal Files', async ({ personalFiles }) => {
|
||||||
await personalFiles.navigate();
|
await personalFiles.navigate();
|
||||||
await personalFiles.dataTable.setPaginationTo50();
|
await personalFiles.dataTable.goThroughPagesLookingForRowWithName(folder1);
|
||||||
await personalFiles.dataTable.getCellLinkByName(folder1).click();
|
await personalFiles.dataTable.getCellLinkByName(folder1).click();
|
||||||
await personalFiles.dataTable.spinnerWaitForReload();
|
await personalFiles.dataTable.spinnerWaitForReload();
|
||||||
while ((await personalFiles.breadcrumb.currentItem.innerText()) === 'Personal Files') {
|
while ((await personalFiles.breadcrumb.currentItem.innerText()) === 'Personal Files') {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ test.describe('Search - Filters - Categories', () => {
|
|||||||
await searchPage.searchFilters.categoriesFilter.click();
|
await searchPage.searchFilters.categoriesFilter.click();
|
||||||
await searchPage.searchFiltersCategories.addOptionInput.fill(newSubcategories[0].name);
|
await searchPage.searchFiltersCategories.addOptionInput.fill(newSubcategories[0].name);
|
||||||
await searchPage.searchFilters.dropdownOptions.first().click();
|
await searchPage.searchFilters.dropdownOptions.first().click();
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
|
|
||||||
await expect(searchPage.dataTable.getRowByName(fileNamePdf)).toBeHidden();
|
await expect(searchPage.dataTable.getRowByName(fileNamePdf)).toBeHidden();
|
||||||
await expect(searchPage.dataTable.getRowByName(fileNameJpg)).toBeVisible();
|
await expect(searchPage.dataTable.getRowByName(fileNameJpg)).toBeVisible();
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ test.describe('Search - Filters - General', () => {
|
|||||||
test('[XAT-5575] Search Filters Menu cards have proper titles', async ({ searchPage }) => {
|
test('[XAT-5575] Search Filters Menu cards have proper titles', async ({ searchPage }) => {
|
||||||
async function checkMenuCardTitle(page: SearchPage, filterLocator: Locator, expectText: string): Promise<void> {
|
async function checkMenuCardTitle(page: SearchPage, filterLocator: Locator, expectText: string): Promise<void> {
|
||||||
await filterLocator.click();
|
await filterLocator.click();
|
||||||
await expect(page.searchFilters.menuCardTitle).toContainText(expectText);
|
await expect(page.searchMenuCard.menuCardTitle).toContainText(expectText);
|
||||||
await page.searchFilters.menuCardClose.click();
|
await page.searchMenuCard.menuCardClose.click();
|
||||||
await page.searchFilters.menuCardClose.waitFor({ state: 'hidden' });
|
await page.searchMenuCard.menuCardClose.waitFor({ state: 'hidden' });
|
||||||
await expect(page.searchFilters.menuCardClose).toBeHidden();
|
await expect(page.searchMenuCard.menuCardClose).toBeHidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
const testCases = [
|
const testCases = [
|
||||||
@@ -88,12 +88,12 @@ test.describe('Search - Filters - General', () => {
|
|||||||
const filterTextBefore = await searchPage.searchFilters.propertiesFilter.textContent();
|
const filterTextBefore = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||||
await searchPage.searchFilters.propertiesFilter.click();
|
await searchPage.searchFilters.propertiesFilter.click();
|
||||||
await searchPage.searchFiltersProperties.fileSizeInput.fill('1000');
|
await searchPage.searchFiltersProperties.fileSizeInput.fill('1000');
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
const filterTextAfter = await searchPage.searchFilters.propertiesFilter.textContent();
|
const filterTextAfter = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||||
|
|
||||||
await searchPage.searchFilters.propertiesFilter.click();
|
await searchPage.searchFilters.propertiesFilter.click();
|
||||||
await searchPage.searchFilters.menuCardClear.click();
|
await searchPage.searchMenuCard.menuCardClear.click();
|
||||||
await searchPage.searchFiltersProperties.fileSizeInput.waitFor({ state: 'hidden' });
|
await searchPage.searchFiltersProperties.fileSizeInput.waitFor({ state: 'hidden' });
|
||||||
const filterTextCleared = await searchPage.searchFilters.propertiesFilter.textContent();
|
const filterTextCleared = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||||
|
|
||||||
@@ -105,14 +105,14 @@ test.describe('Search - Filters - General', () => {
|
|||||||
const propertiesFilterTextBefore = await searchPage.searchFilters.propertiesFilter.textContent();
|
const propertiesFilterTextBefore = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||||
await searchPage.searchFilters.propertiesFilter.click();
|
await searchPage.searchFilters.propertiesFilter.click();
|
||||||
await searchPage.searchFiltersProperties.fileSizeInput.fill('1000');
|
await searchPage.searchFiltersProperties.fileSizeInput.fill('1000');
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
const propertiesFilterTextAfter = await searchPage.searchFilters.propertiesFilter.textContent();
|
const propertiesFilterTextAfter = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||||
|
|
||||||
const logicFilterTextBefore = await searchPage.searchFilters.logicFilter.textContent();
|
const logicFilterTextBefore = await searchPage.searchFilters.logicFilter.textContent();
|
||||||
await searchPage.searchFilters.logicFilter.click();
|
await searchPage.searchFilters.logicFilter.click();
|
||||||
await searchPage.searchFiltersLogic.matchAllInput.fill('test');
|
await searchPage.searchFiltersLogic.matchAllInput.fill('test');
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
const logicFilterTextAfter = await searchPage.searchFilters.logicFilter.textContent();
|
const logicFilterTextAfter = await searchPage.searchFilters.logicFilter.textContent();
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
await searchPage.searchFiltersLogic.matchAllInput.fill(
|
await searchPage.searchFiltersLogic.matchAllInput.fill(
|
||||||
`${logicFile1NameSplit[0]} ${logicFile1NameSplit[1]} ${logicFile1TitleSplit[1]} ${logicFile1DescriptionSplit[1]}`
|
`${logicFile1NameSplit[0]} ${logicFile1NameSplit[1]} ${logicFile1TitleSplit[1]} ${logicFile1DescriptionSplit[1]}`
|
||||||
);
|
);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
await expect(searchPage.dataTable.getRowByName(logicFile1.name)).toBeVisible();
|
await expect(searchPage.dataTable.getRowByName(logicFile1.name)).toBeVisible();
|
||||||
@@ -92,7 +92,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
await searchPage.searchFiltersLogic.matchAnyInput.fill(
|
await searchPage.searchFiltersLogic.matchAnyInput.fill(
|
||||||
`${logicFile1NameSplit[2]}-${logicFile1NameSplit[3]} ${logicFile1TitleSplit[0]} ${logicFile1DescriptionSplit[0]}`
|
`${logicFile1NameSplit[2]}-${logicFile1NameSplit[3]} ${logicFile1TitleSplit[0]} ${logicFile1DescriptionSplit[0]}`
|
||||||
);
|
);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
expect(await searchPage.dataTable.getRowsCount()).toBe(2);
|
expect(await searchPage.dataTable.getRowsCount()).toBe(2);
|
||||||
@@ -106,7 +106,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
`${logicFile1NameSplit[0]}-${logicFile1NameSplit[1]} ${logicFile1TitleSplit[0]} ${logicFile1DescriptionSplit[0]}`
|
`${logicFile1NameSplit[0]}-${logicFile1NameSplit[1]} ${logicFile1TitleSplit[0]} ${logicFile1DescriptionSplit[0]}`
|
||||||
);
|
);
|
||||||
await searchPage.searchFiltersLogic.excludeInput.fill(`${logicFile1DescriptionSplit[1]}`);
|
await searchPage.searchFiltersLogic.excludeInput.fill(`${logicFile1DescriptionSplit[1]}`);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
||||||
@@ -117,7 +117,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
test('[XAT-5587] should able to filter search result with logic filter with Exact Phrase', async ({ searchPage }) => {
|
test('[XAT-5587] should able to filter search result with logic filter with Exact Phrase', async ({ searchPage }) => {
|
||||||
await searchPage.searchFilters.logicFilter.click();
|
await searchPage.searchFilters.logicFilter.click();
|
||||||
await searchPage.searchFiltersLogic.matchExactInput.fill(logicFile1.name);
|
await searchPage.searchFiltersLogic.matchExactInput.fill(logicFile1.name);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
||||||
@@ -126,7 +126,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
|
|
||||||
await searchPage.searchFilters.logicFilter.click();
|
await searchPage.searchFilters.logicFilter.click();
|
||||||
await searchPage.searchFiltersLogic.matchExactInput.fill(logicFile1.title);
|
await searchPage.searchFiltersLogic.matchExactInput.fill(logicFile1.title);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
||||||
@@ -135,7 +135,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
|
|
||||||
await searchPage.searchFilters.logicFilter.click();
|
await searchPage.searchFilters.logicFilter.click();
|
||||||
await searchPage.searchFiltersLogic.matchExactInput.fill(logicFile1.description);
|
await searchPage.searchFiltersLogic.matchExactInput.fill(logicFile1.description);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
||||||
@@ -151,7 +151,7 @@ test.describe('Search - Filters - Logic', () => {
|
|||||||
await searchPage.searchFiltersLogic.matchAnyInput.fill(`${logicFile1NameSplit[0]} ${logicFile1TitleSplit[2]}`);
|
await searchPage.searchFiltersLogic.matchAnyInput.fill(`${logicFile1NameSplit[0]} ${logicFile1TitleSplit[2]}`);
|
||||||
await searchPage.searchFiltersLogic.excludeInput.fill(`${logicFile1NameSplit[3]}`);
|
await searchPage.searchFiltersLogic.excludeInput.fill(`${logicFile1NameSplit[3]}`);
|
||||||
await searchPage.searchFiltersLogic.matchExactInput.fill(`${logicFile2NameSplit[1]}-${logicFile2NameSplit[2]}-${logicFile2NameSplit[3]}`);
|
await searchPage.searchFiltersLogic.matchExactInput.fill(`${logicFile2NameSplit[1]}-${logicFile2NameSplit[2]}-${logicFile2NameSplit[3]}`);
|
||||||
await searchPage.searchFilters.menuCardApply.click();
|
await searchPage.searchMenuCard.menuCardApply.click();
|
||||||
await searchPage.dataTable.progressBarWaitForReload();
|
await searchPage.dataTable.progressBarWaitForReload();
|
||||||
|
|
||||||
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
expect(await searchPage.dataTable.getRowsCount()).toBe(1);
|
||||||
|
|||||||
@@ -66,14 +66,14 @@ test.describe('Upload files', () => {
|
|||||||
test('[XAT-17778] The upload dialog can be closed', async ({ personalFiles }) => {
|
test('[XAT-17778] The upload dialog can be closed', async ({ personalFiles }) => {
|
||||||
await expect(personalFiles.uploadDialog.closeButton, 'Close button was not visible').toBeVisible();
|
await expect(personalFiles.uploadDialog.closeButton, 'Close button was not visible').toBeVisible();
|
||||||
await personalFiles.uploadDialog.closeButton.click();
|
await personalFiles.uploadDialog.closeButton.click();
|
||||||
await expect(personalFiles.uploadDialog.uploadDialog, 'Upload Dialog was visible').toBeHidden();
|
await expect(personalFiles.uploadDialog.uploadDialogContent, 'Upload Dialog was visible').toBeHidden();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('[XAT-17779] The upload dialog can be minimized and maximized', async ({ personalFiles }) => {
|
test('[XAT-17779] The upload dialog can be minimized and maximized', async ({ personalFiles }) => {
|
||||||
await personalFiles.uploadDialog.minimizeButton.click();
|
await personalFiles.uploadDialog.minimizeButton.click();
|
||||||
await expect(personalFiles.uploadDialog.uploadDialogMinimized, 'Upload Dialog was not minimized').toBeVisible();
|
await expect(personalFiles.uploadDialog.uploadDialogMinimized, 'Upload Dialog was not minimized').toBeVisible();
|
||||||
await personalFiles.uploadDialog.minimizeButton.click();
|
await personalFiles.uploadDialog.minimizeButton.click();
|
||||||
await expect(personalFiles.uploadDialog.uploadDialog, 'Upload Dialog was not maximized').toBeVisible();
|
await expect(personalFiles.uploadDialog.uploadDialogContent, 'Upload Dialog was not maximized').toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('[XAT-5278] Upload history is expunged on browser refresh / close tab / close browser / log out', async ({ personalFiles, loginPage }) => {
|
test('[XAT-5278] Upload history is expunged on browser refresh / close tab / close browser / log out', async ({ personalFiles, loginPage }) => {
|
||||||
@@ -88,6 +88,6 @@ test.describe('Upload files', () => {
|
|||||||
myLibrariesPage
|
myLibrariesPage
|
||||||
}) => {
|
}) => {
|
||||||
await myLibrariesPage.navigate();
|
await myLibrariesPage.navigate();
|
||||||
await expect(personalFiles.uploadDialog.uploadDialog, 'Upload Dialog was not visible').toBeVisible();
|
await expect(personalFiles.uploadDialog.uploadDialogContent, 'Upload Dialog was not visible').toBeVisible();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
+6
-6
@@ -44,15 +44,15 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
|||||||
public propertiesTab = this.page.getByRole('tab', { name: 'Properties' });
|
public propertiesTab = this.page.getByRole('tab', { name: 'Properties' });
|
||||||
public commentsTab = this.page.getByRole('tab', { name: 'Comments' });
|
public commentsTab = this.page.getByRole('tab', { name: 'Comments' });
|
||||||
public infoDrawerTabs = this.getChild('.adf-info-drawer-tab');
|
public infoDrawerTabs = this.getChild('.adf-info-drawer-tab');
|
||||||
public commentInputField = this.page.locator('#comment-input');
|
public commentInputField = this.getChild('#comment-input');
|
||||||
public commentsHeader = this.getChild('#comment-header');
|
public commentsHeader = this.getChild('#comment-header');
|
||||||
public addCommentButton = this.getChild('[data-automation-id="comments-input-add"]');
|
public addCommentButton = this.getChild('[data-automation-id="comments-input-add"]');
|
||||||
public commentsList = this.getChild('.adf-comment-list-item');
|
public commentsList = this.getChild('.adf-comment-list-item');
|
||||||
public commentUsername = this.getChild('.adf-comment-user-name');
|
public commentUsername = this.getChild('.adf-comment-user-name');
|
||||||
public commentTextContent = this.getChild('.adf-comment-message');
|
public commentTextContent = this.getChild('.adf-comment-message');
|
||||||
public commentTimestamp = this.getChild('.adf-comment-message-time');
|
public commentTimestamp = this.getChild('.adf-comment-message-time');
|
||||||
public infoDrawerPanel = this.page.locator('.adf-info-drawer');
|
public infoDrawerPanel = this.page.locator(AdfInfoDrawerComponent.rootElement);
|
||||||
public headerTitle = this.page.locator('.adf-info-drawer-layout-header-title').getByRole('heading');
|
public headerTitle = this.getChild('.adf-info-drawer-layout-header-title').getByRole('heading');
|
||||||
public editButton = this.page.getByRole('button', { name: 'Edit' });
|
public editButton = this.page.getByRole('button', { name: 'Edit' });
|
||||||
public cancelButton = this.page.getByRole('button', { name: 'Cancel' });
|
public cancelButton = this.page.getByRole('button', { name: 'Cancel' });
|
||||||
public updateButton = this.page.getByRole('button', { name: 'Update' });
|
public updateButton = this.page.getByRole('button', { name: 'Update' });
|
||||||
@@ -62,9 +62,9 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
|||||||
public expandDetailsButton = this.getChild(`button[title='Expand panel']`);
|
public expandDetailsButton = this.getChild(`button[title='Expand panel']`);
|
||||||
public expandedDetailsTabs = this.page.locator('.aca-details-container [role="tab"]');
|
public expandedDetailsTabs = this.page.locator('.aca-details-container [role="tab"]');
|
||||||
public expandedDetailsPermissionsTab = this.expandedDetailsTabs.getByText('Permissions');
|
public expandedDetailsPermissionsTab = this.expandedDetailsTabs.getByText('Permissions');
|
||||||
public nameField = this.page.locator('input[placeholder=Name]');
|
public nameField = this.getChild('input[placeholder=Name]');
|
||||||
public idField = this.page.locator(`input[placeholder='Library ID']`);
|
public idField = this.getChild(`input[placeholder='Library ID']`);
|
||||||
public descriptionField = this.page.locator('textarea[placeholder=Description]');
|
public descriptionField = this.getChild('textarea[placeholder=Description]');
|
||||||
public visibilityField = this.infoDrawerPanel.getByRole('combobox');
|
public visibilityField = this.infoDrawerPanel.getByRole('combobox');
|
||||||
public selectVisibility = (visibilityOption: string) => this.page.getByRole('listbox').getByRole('option', { name: visibilityOption }).click();
|
public selectVisibility = (visibilityOption: string) => this.page.getByRole('listbox').getByRole('option', { name: visibilityOption }).click();
|
||||||
public tagsAccordion = this.getChild('[data-automation-id="adf-content-metadata-tags-panel"]');
|
public tagsAccordion = this.getChild('[data-automation-id="adf-content-metadata-tags-panel"]');
|
||||||
|
|||||||
+4
-11
@@ -50,12 +50,10 @@ export class DataTableComponent extends BaseComponent {
|
|||||||
emptyListSubtitle = this.getChild('.adf-empty-content__subtitle');
|
emptyListSubtitle = this.getChild('.adf-empty-content__subtitle');
|
||||||
emptySearchText = this.getChild('.empty-search__text');
|
emptySearchText = this.getChild('.empty-search__text');
|
||||||
emptyListTest = this.getChild('adf-custom-empty-content-template');
|
emptyListTest = this.getChild('adf-custom-empty-content-template');
|
||||||
paginationButton = this.page.locator('.adf-pagination__block button').nth(0);
|
sitesVisibility = this.getChild('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Visibility"]');
|
||||||
paginationOptions = this.page.locator('#cdk-overlay-0 button');
|
sitesName = this.getChild('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Name"]');
|
||||||
sitesVisibility = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Visibility"]');
|
sitesRole = this.getChild('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="My Role"]');
|
||||||
sitesName = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="Name"]');
|
lockOwner = '.aca-locked-by--name';
|
||||||
sitesRole = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="My Role"]');
|
|
||||||
lockOwner = this.page.locator('.aca-locked-by--name');
|
|
||||||
highlightedText = '.aca-highlight';
|
highlightedText = '.aca-highlight';
|
||||||
searchFileName = '.search-file-name';
|
searchFileName = '.search-file-name';
|
||||||
searchFileDescription = '[data-automation-id="search-results-entry-description"]';
|
searchFileDescription = '[data-automation-id="search-results-entry-description"]';
|
||||||
@@ -310,11 +308,6 @@ export class DataTableComponent extends BaseComponent {
|
|||||||
await this.getCellByColumnNameAndRowItem(itemName, 'Name').click({ button: 'right' });
|
await this.getCellByColumnNameAndRowItem(itemName, 'Name').click({ button: 'right' });
|
||||||
}
|
}
|
||||||
|
|
||||||
async setPaginationTo50(): Promise<void> {
|
|
||||||
await this.paginationButton.click();
|
|
||||||
await this.paginationOptions.getByText('50').click();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method used to create objects from names and visibility of sites from datatable
|
* Method used to create objects from names and visibility of sites from datatable
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -24,4 +24,3 @@
|
|||||||
|
|
||||||
export * from './data-table.component';
|
export * from './data-table.component';
|
||||||
export * from './mat-menu.component';
|
export * from './mat-menu.component';
|
||||||
export * from './toolbar.component';
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ export class DateTimePicker extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async isCalendarOpen(): Promise<boolean> {
|
async isCalendarOpen(): Promise<boolean> {
|
||||||
const element = this.getChild('');
|
const element = this.page.locator(DateTimePicker.rootElement);
|
||||||
return element.isVisible();
|
return element.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -35,8 +35,8 @@ export class CreateFromTemplateDialogComponent extends BaseComponent {
|
|||||||
|
|
||||||
cancelButton = this.getChild('[data-automation-id="create-from-template-dialog-cancel-button"]');
|
cancelButton = this.getChild('[data-automation-id="create-from-template-dialog-cancel-button"]');
|
||||||
createButton = this.getChild('[data-automation-id="create-from-template-dialog-create-button"]');
|
createButton = this.getChild('[data-automation-id="create-from-template-dialog-create-button"]');
|
||||||
getDialogTitle = (text: string) => this.getChild('[data-automation-id="create-from-template-title"]', { hasText: text });
|
getDialogTitle = (text: string): Locator => this.getChild('[data-automation-id="create-from-template-title"]', { hasText: text });
|
||||||
getDialogLabel = (text: string) => this.getChild('label', { hasText: text });
|
getDialogLabel = (text: string): Locator => this.getChild('label', { hasText: text });
|
||||||
getErrorByText = (text: string): Locator => this.page.locator('[data-automation-id="create-from-template-field-error"]', { hasText: text });
|
getErrorByText = (text: string): Locator => this.page.locator('[data-automation-id="create-from-template-field-error"]', { hasText: text });
|
||||||
|
|
||||||
async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
|
async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ import { BaseComponent } from '../base.component';
|
|||||||
export class EditDialog extends BaseComponent {
|
export class EditDialog extends BaseComponent {
|
||||||
private static rootElement = 'adf-folder-dialog';
|
private static rootElement = 'adf-folder-dialog';
|
||||||
|
|
||||||
public editDialog = this.getChild('');
|
public editDialog = this.page.locator(EditDialog.rootElement);
|
||||||
public titleInput = this.getChild('[data-automation-id="adf-folder-dialog-title"]');
|
public titleInput = this.getChild('[data-automation-id="adf-folder-dialog-title"]');
|
||||||
public cancelButton = this.getChild('#adf-folder-cancel-button');
|
public cancelButton = this.getChild('#adf-folder-cancel-button');
|
||||||
public updateButton = this.getChild('#adf-folder-create-button');
|
public updateButton = this.getChild('#adf-folder-create-button');
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ export class ManageVersionsDialog extends BaseComponent {
|
|||||||
private static rootElement = '.adf-new-version-uploader-dialog';
|
private static rootElement = '.adf-new-version-uploader-dialog';
|
||||||
|
|
||||||
async viewFileVersion(version: string): Promise<void> {
|
async viewFileVersion(version: string): Promise<void> {
|
||||||
const versionActionsButton = this.page.locator(`[id="adf-version-list-action-menu-button-${version}"]`);
|
const versionActionsButton = this.getChild(`[id="adf-version-list-action-menu-button-${version}"]`);
|
||||||
await versionActionsButton.click();
|
await versionActionsButton.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -26,12 +26,12 @@ import { Page } from '@playwright/test';
|
|||||||
import { BaseComponent } from '../base.component';
|
import { BaseComponent } from '../base.component';
|
||||||
|
|
||||||
export class UploadDialog extends BaseComponent {
|
export class UploadDialog extends BaseComponent {
|
||||||
private static rootElement = '.adf-upload-dialog';
|
private static rootElement = 'aca-upload-files-dialog';
|
||||||
|
|
||||||
public uploadDialog = this.page.locator('.adf-upload-dialog');
|
public uploadDialogContent = this.getChild('.adf-upload-dialog__content');
|
||||||
public closeButton = this.getChild('#adf-upload-dialog-close');
|
public closeButton = this.getChild('#adf-upload-dialog-close');
|
||||||
public minimizeButton = this.page.locator('[data-automation-id="adf-upload-dialog__toggle-minimize"]');
|
public minimizeButton = this.getChild('[data-automation-id="adf-upload-dialog__toggle-minimize"]');
|
||||||
public uploadDialogMinimized = this.page.locator('.adf-upload-dialog--minimized');
|
public uploadDialogMinimized = this.getChild('.adf-upload-dialog--minimized');
|
||||||
|
|
||||||
constructor(page: Page) {
|
constructor(page: Page) {
|
||||||
super(page, UploadDialog.rootElement);
|
super(page, UploadDialog.rootElement);
|
||||||
|
|||||||
@@ -33,16 +33,7 @@ export * from './conditions.component';
|
|||||||
export * from './pagination.component';
|
export * from './pagination.component';
|
||||||
export * from './adf-info-drawer.component';
|
export * from './adf-info-drawer.component';
|
||||||
export * from './viewer.component';
|
export * from './viewer.component';
|
||||||
export * from './search/search-input.component';
|
export * from './search';
|
||||||
export * from './search/search-overlay.components';
|
|
||||||
export * from './search/search-sorting-picker.components';
|
|
||||||
export * from './search/search-filters.component';
|
|
||||||
export * from './search/search-filters/search-filters-categories.component';
|
|
||||||
export * from './search/search-filters/search-filters-date.component';
|
|
||||||
export * from './search/search-filters/search-filters-location.component';
|
|
||||||
export * from './search/search-filters/search-filters-logic.component';
|
|
||||||
export * from './search/search-filters/search-filters-properties.component';
|
|
||||||
export * from './search/search-filters/search-filters-tags.component';
|
|
||||||
export * from './breadcrumb/breadcrumb.component';
|
export * from './breadcrumb/breadcrumb.component';
|
||||||
export * from './sidenav.component';
|
export * from './sidenav.component';
|
||||||
export * from './aca-header.component';
|
export * from './aca-header.component';
|
||||||
|
|||||||
@@ -24,3 +24,4 @@
|
|||||||
|
|
||||||
export * from './manage-rules-dialog.component';
|
export * from './manage-rules-dialog.component';
|
||||||
export * from './manage-rules.component';
|
export * from './manage-rules.component';
|
||||||
|
export * from './manage-rules-toolbar.component';
|
||||||
|
|||||||
+5
-5
@@ -25,20 +25,20 @@
|
|||||||
import { BaseComponent } from '../base.component';
|
import { BaseComponent } from '../base.component';
|
||||||
import { Page } from '@playwright/test';
|
import { Page } from '@playwright/test';
|
||||||
|
|
||||||
export class ToolbarComponent extends BaseComponent {
|
export class RulesToolbarComponent extends BaseComponent {
|
||||||
private static rootElement = 'adf-toolbar';
|
private static readonly rootElement = '.aca-manage-rules__actions-bar';
|
||||||
|
|
||||||
constructor(page: Page) {
|
constructor(page: Page) {
|
||||||
super(page, ToolbarComponent.rootElement);
|
super(page, RulesToolbarComponent.rootElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
async clickCreateRuleButton(): Promise<void> {
|
async clickCreateRuleButton(): Promise<void> {
|
||||||
const button = this.page.locator('[data-automation-id="manage-rules-create-button"]');
|
const button = this.getChild('[data-automation-id="manage-rules-create-button"]');
|
||||||
await button.click();
|
await button.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
async clickLinkRulesButton(): Promise<void> {
|
async clickLinkRulesButton(): Promise<void> {
|
||||||
const button = this.page.locator('[data-automation-id="manage-rules-link-button"]');
|
const button = this.getChild('[data-automation-id="manage-rules-link-button"]');
|
||||||
await button.click();
|
await button.click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
/*!
|
||||||
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
|
*
|
||||||
|
* Alfresco Example Content Application
|
||||||
|
*
|
||||||
|
* This file is part of the Alfresco Example Content Application.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from './search-filters';
|
||||||
|
export * from './search-filters.component';
|
||||||
|
export * from './search-input.component';
|
||||||
|
export * from './search-menu-card.component';
|
||||||
|
export * from './search-overlay.components';
|
||||||
|
export * from './search-sorting-picker.components';
|
||||||
+12
-12
@@ -32,17 +32,17 @@ export class SearchFilters extends BaseComponent {
|
|||||||
super(page, SearchFilters.rootElement);
|
super(page, SearchFilters.rootElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
public filtersButtons = this.page.locator('adf-search-widget-chip');
|
public filtersButtons = this.getChild('adf-search-widget-chip');
|
||||||
public logicFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Logic' });
|
public logicFilter = this.getChild('adf-search-widget-chip', { hasText: 'Logic' });
|
||||||
public propertiesFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Properties' });
|
public propertiesFilter = this.getChild('adf-search-widget-chip', { hasText: 'Properties' });
|
||||||
public dateFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Date' });
|
public dateFilter = this.getChild('adf-search-widget-chip', { hasText: 'Date' });
|
||||||
public locationFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Location' });
|
public locationFilter = this.getChild('adf-search-widget-chip', { hasText: 'Location' });
|
||||||
public tagsFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Tags' });
|
public tagsFilter = this.getChild('adf-search-widget-chip', { hasText: 'Tags' });
|
||||||
public categoriesFilter = this.page.locator('adf-search-widget-chip', { hasText: 'Categories' });
|
public categoriesFilter = this.getChild('adf-search-widget-chip', { hasText: 'Categories' });
|
||||||
public resetButton = this.page.locator('button', { hasText: 'Reset' });
|
public resetButton = this.getChild('button', { hasText: 'Reset' });
|
||||||
public menuCardTitle = this.page.locator('.adf-search-filter-title');
|
public menuCardTitle = this.getChild('.adf-search-filter-title');
|
||||||
public menuCardClose = this.page.locator('.adf-search-filter-title-action');
|
public menuCardClose = this.getChild('.adf-search-filter-title-action');
|
||||||
public menuCardClear = this.page.locator('#cancel-filter-button');
|
public menuCardClear = this.getChild('#cancel-filter-button');
|
||||||
public menuCardApply = this.page.locator('#apply-filter-button');
|
public menuCardApply = this.getChild('#apply-filter-button');
|
||||||
public dropdownOptions = this.page.locator(`[role="option"]`);
|
public dropdownOptions = this.page.locator(`[role="option"]`);
|
||||||
}
|
}
|
||||||
|
|||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
/*!
|
||||||
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
|
*
|
||||||
|
* Alfresco Example Content Application
|
||||||
|
*
|
||||||
|
* This file is part of the Alfresco Example Content Application.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from './search-filters-categories.component';
|
||||||
|
export * from './search-filters-date.component';
|
||||||
|
export * from './search-filters-location.component';
|
||||||
|
export * from './search-filters-logic.component';
|
||||||
|
export * from './search-filters-properties.component';
|
||||||
|
export * from './search-filters-tags.component';
|
||||||
+1
-1
@@ -43,7 +43,7 @@ export class SearchFiltersLocation extends BaseComponent {
|
|||||||
await page.searchFilters.locationFilter.click();
|
await page.searchFilters.locationFilter.click();
|
||||||
await page.searchFiltersLocation.addOptionInput.fill(location);
|
await page.searchFiltersLocation.addOptionInput.fill(location);
|
||||||
await page.searchFiltersLocation.searchOption(location).click();
|
await page.searchFiltersLocation.searchOption(location).click();
|
||||||
await page.searchFilters.menuCardApply.click();
|
await page.searchMenuCard.menuCardApply.click();
|
||||||
await page.dataTable.progressBarWaitForReload();
|
await page.dataTable.progressBarWaitForReload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -94,7 +94,7 @@ export class SearchFiltersProperties extends BaseComponent {
|
|||||||
await this.dropdownOptions.getByText(fileTypeInputText).click();
|
await this.dropdownOptions.getByText(fileTypeInputText).click();
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.searchFilters.menuCardApply.click();
|
await page.searchMenuCard.menuCardApply.click();
|
||||||
await page.dataTable.progressBarWaitForReload();
|
await page.dataTable.progressBarWaitForReload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -43,13 +43,13 @@ export class SearchFiltersTags extends BaseComponent {
|
|||||||
await page.searchFilters.tagsFilter.click();
|
await page.searchFilters.tagsFilter.click();
|
||||||
await page.searchFiltersTags.addOptionInput.fill(tag);
|
await page.searchFiltersTags.addOptionInput.fill(tag);
|
||||||
await this.searchOption(tag).click();
|
await this.searchOption(tag).click();
|
||||||
await page.searchFilters.menuCardApply.click();
|
await page.searchMenuCard.menuCardApply.click();
|
||||||
await page.dataTable.progressBarWaitForReload();
|
await page.dataTable.progressBarWaitForReload();
|
||||||
}
|
}
|
||||||
|
|
||||||
async clearTagFilter(page: SearchPage): Promise<void> {
|
async clearTagFilter(page: SearchPage): Promise<void> {
|
||||||
await page.searchFilters.tagsFilter.click();
|
await page.searchFilters.tagsFilter.click();
|
||||||
await page.searchFilters.menuCardClear.click();
|
await page.searchMenuCard.menuCardClear.click();
|
||||||
await page.dataTable.progressBarWaitForReload();
|
await page.dataTable.progressBarWaitForReload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+41
@@ -0,0 +1,41 @@
|
|||||||
|
/*!
|
||||||
|
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
|
*
|
||||||
|
* Alfresco Example Content Application
|
||||||
|
*
|
||||||
|
* This file is part of the Alfresco Example Content Application.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { BaseComponent } from '../base.component';
|
||||||
|
import { Page } from '@playwright/test';
|
||||||
|
|
||||||
|
export class SearchMenuCard extends BaseComponent {
|
||||||
|
private static readonly rootElement = '.adf-search-filter-menu-card';
|
||||||
|
|
||||||
|
public resetButton = this.getChild('button', { hasText: 'Reset' });
|
||||||
|
public menuCardTitle = this.getChild('.adf-search-filter-title');
|
||||||
|
public menuCardClose = this.getChild('.adf-search-filter-title-action');
|
||||||
|
public menuCardClear = this.getChild('#cancel-filter-button');
|
||||||
|
public menuCardApply = this.getChild('#apply-filter-button');
|
||||||
|
public dropdownOptions = this.page.locator(`[role="option"]`);
|
||||||
|
|
||||||
|
constructor(page: Page) {
|
||||||
|
super(page, SearchMenuCard.rootElement);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -27,7 +27,7 @@ import { BaseComponent } from './base.component';
|
|||||||
import { Locator, Page } from '@playwright/test';
|
import { Locator, Page } from '@playwright/test';
|
||||||
|
|
||||||
export class SidenavComponent extends BaseComponent {
|
export class SidenavComponent extends BaseComponent {
|
||||||
private static rootElement = 'app-sidenav';
|
private static rootElement = '.adf-layout-container-sidenav';
|
||||||
|
|
||||||
private personalFiles = this.getChild(`[data-automation-id='app.navbar.personalFiles']`);
|
private personalFiles = this.getChild(`[data-automation-id='app.navbar.personalFiles']`);
|
||||||
private myLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.files']`);
|
private myLibraries = this.getChild(`[data-automation-id='app.navbar.libraries.files']`);
|
||||||
@@ -37,8 +37,8 @@ export class SidenavComponent extends BaseComponent {
|
|||||||
private favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`);
|
private favorites = this.getChild(`[data-automation-id='app.navbar.favorites']`);
|
||||||
private trash = this.getChild(`[data-automation-id='app.navbar.trashcan']`);
|
private trash = this.getChild(`[data-automation-id='app.navbar.trashcan']`);
|
||||||
private sidenavToggle = this.getChild(`.aca-sidenav-header-title-logo`);
|
private sidenavToggle = this.getChild(`.aca-sidenav-header-title-logo`);
|
||||||
private sidenavExpand = this.page.getByTitle('Expand navigation menu');
|
private sidenavExpand = this.page.locator(`[title='Expand navigation menu']`);
|
||||||
public expandedSidenav = this.page.locator(`[data-automation-id='expanded']`);
|
public expandedSidenav = this.getChild(`[data-automation-id='expanded']`);
|
||||||
|
|
||||||
constructor(page: Page) {
|
constructor(page: Page) {
|
||||||
super(page, SidenavComponent.rootElement);
|
super(page, SidenavComponent.rootElement);
|
||||||
@@ -74,7 +74,7 @@ export class SidenavComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async isSidenavExpanded(): Promise<boolean> {
|
private async isSidenavExpanded(): Promise<boolean> {
|
||||||
await this.page.waitForTimeout(timeouts.tiny);
|
await this.page.waitForTimeout(timeouts.tiny);
|
||||||
return this.expandedSidenav.isVisible();
|
return this.expandedSidenav.isVisible();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {
|
|||||||
ConditionComponent,
|
ConditionComponent,
|
||||||
ManageRules,
|
ManageRules,
|
||||||
ManageRulesDialogComponent,
|
ManageRulesDialogComponent,
|
||||||
ToolbarComponent,
|
RulesToolbarComponent,
|
||||||
ActionsDropdownComponent,
|
ActionsDropdownComponent,
|
||||||
ContentNodeSelectorDialog,
|
ContentNodeSelectorDialog,
|
||||||
LinkRulesDialog
|
LinkRulesDialog
|
||||||
@@ -41,7 +41,7 @@ export class NodesPage extends BasePage {
|
|||||||
super(page, NodesPage.pageUrl);
|
super(page, NodesPage.pageUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
public toolbar = new ToolbarComponent(this.page);
|
public rulesToolbar = new RulesToolbarComponent(this.page);
|
||||||
public manageRulesDialog = new ManageRulesDialogComponent(this.page);
|
public manageRulesDialog = new ManageRulesDialogComponent(this.page);
|
||||||
public actionsDropdown = new ActionsDropdownComponent(this.page);
|
public actionsDropdown = new ActionsDropdownComponent(this.page);
|
||||||
public conditionsDropdown = new ConditionComponent(this.page);
|
public conditionsDropdown = new ConditionComponent(this.page);
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ import {
|
|||||||
SearchFiltersLocation,
|
SearchFiltersLocation,
|
||||||
SearchFiltersLogic,
|
SearchFiltersLogic,
|
||||||
SearchFiltersProperties,
|
SearchFiltersProperties,
|
||||||
FolderInformationDialogComponent
|
FolderInformationDialogComponent,
|
||||||
|
SearchMenuCard
|
||||||
} from '../components';
|
} from '../components';
|
||||||
import { AcaHeader } from '../components/aca-header.component';
|
import { AcaHeader } from '../components/aca-header.component';
|
||||||
import { AdfConfirmDialogComponent, AdfFolderDialogComponent, UploadNewVersionDialog, ManageVersionsDialog } from '../components/dialogs';
|
import { AdfConfirmDialogComponent, AdfFolderDialogComponent, UploadNewVersionDialog, ManageVersionsDialog } from '../components/dialogs';
|
||||||
@@ -73,6 +74,7 @@ export class SearchPage extends BasePage {
|
|||||||
public uploadNewVersionDialog = new UploadNewVersionDialog(this.page);
|
public uploadNewVersionDialog = new UploadNewVersionDialog(this.page);
|
||||||
public manageVersionsDialog = new ManageVersionsDialog(this.page);
|
public manageVersionsDialog = new ManageVersionsDialog(this.page);
|
||||||
public folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
public folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
||||||
|
public searchMenuCard = new SearchMenuCard(this.page);
|
||||||
|
|
||||||
async searchWithin(searchText: string, searchType?: SearchType): Promise<void> {
|
async searchWithin(searchText: string, searchType?: SearchType): Promise<void> {
|
||||||
await this.acaHeader.searchButton.click();
|
await this.acaHeader.searchButton.click();
|
||||||
|
|||||||
Reference in New Issue
Block a user