mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-11855] include e2es lithium (#5194)
* [ACS-11855] included some e2es + small refactoring / improvements * [ACS-11855] more tests include * [ACS-11855] sonar cloud fix 1 * [ACS-11855] copilot review fixes 1 * [ACS-11855] copilot review fixes 2 * [ACS-11855] small tests fixes or improvements * [ACS-11855] fixed failing tests * [ACS-11855] sonar cloud fix * [ACS-11855] sonar cloud fix 2 * [ACS-11855] more search improvements * [ACS-11855] review fix 1 * [ACS-11855] review fix 2 * [ACS-11855] more small improvements
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"all": {
|
||||
"XAT-897": "https://hyland.atlassian.net/browse/ACS-5503",
|
||||
"XAT-907": "https://hyland.atlassian.net/browse/ACS-10486"
|
||||
},
|
||||
"all": {},
|
||||
"webkit": {
|
||||
"XAT-888": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ test.describe('Rules - Manage Rules', () => {
|
||||
const username = `user-e2e-${Utils.random()}`;
|
||||
const folderName897_1 = `folder-XAT-897-1-${Utils.random()}`;
|
||||
const folderName897_2 = `folder-XAT-897-2-${Utils.random()}`;
|
||||
const folderName897_3 = `folder-XAT-897-3-${Utils.random()}`;
|
||||
const folderName898 = `folder-XAT-898-${Utils.random()}`;
|
||||
const folderName899 = `folder-XAT-899-${Utils.random()}`;
|
||||
const folderName900 = `folder-XAT-900-${Utils.random()}`;
|
||||
@@ -72,6 +73,7 @@ test.describe('Rules - Manage Rules', () => {
|
||||
await apiClientFactory.setUpAcaBackend(username, username);
|
||||
folderName897Id1 = (await nodesApi.createFolder(folderName897_1)).entry.id;
|
||||
folderName897Id2 = (await nodesApi.createFolder(folderName897_2)).entry.id;
|
||||
await nodesApi.createFolder(folderName897_3, folderName897Id1);
|
||||
folderId898 = (await nodesApi.createFolder(folderName898)).entry.id;
|
||||
folderId899 = (await nodesApi.createFolder(folderName899)).entry.id;
|
||||
folderId900 = (await nodesApi.createFolder(folderName900)).entry.id;
|
||||
@@ -101,9 +103,16 @@ test.describe('Rules - Manage Rules', () => {
|
||||
|
||||
test('[XAT-897] Update a rule which has an error in its action', async ({ personalFiles, nodesPage }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(folderName897_1, 'Manage rules');
|
||||
await nodesPage.manageRules.turnOffRuleToggle();
|
||||
await nodesPage.manageRules.turnOffRuleToggle('skip expect');
|
||||
expect(await personalFiles.snackBar.getSnackBarMessage()).toContain('no longer exists');
|
||||
await nodesPage.manageRules.ruleDetailsEditButton.click();
|
||||
await expect(nodesPage.manageRulesDialog.ruleDisableCheckbox).toBeChecked();
|
||||
await nodesPage.manageRulesDialog.destinationFolderButton.click();
|
||||
await nodesPage.contentNodeSelectorDialog.selectDestination(folderName897_3);
|
||||
await nodesPage.contentNodeSelectorDialog.actionButton.click();
|
||||
const waitForRuleSets = Utils.waitForApiResponse(personalFiles, 'rule-sets', 200);
|
||||
await nodesPage.manageRulesDialog.createRuleButton.click();
|
||||
await Promise.all([waitForRuleSets, nodesPage.manageRules.turnOffRuleToggle()]);
|
||||
await expect(nodesPage.manageRules.ruleToggleFalse).toBeVisible();
|
||||
});
|
||||
|
||||
test('[XAT-898] Cancel updating rule dialog', async ({ personalFiles, nodesPage }) => {
|
||||
|
||||
Reference in New Issue
Block a user