mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[MNT-24034] Display updated properties after edit folder in dialog (#3671)
This commit is contained in:
@@ -335,27 +335,27 @@
|
|||||||
"no-empty-pattern": "off",
|
"no-empty-pattern": "off",
|
||||||
"playwright/expect-expect": "off",
|
"playwright/expect-expect": "off",
|
||||||
"playwright/max-nested-describe": "off",
|
"playwright/max-nested-describe": "off",
|
||||||
"playwright/missing-playwright-await": "error",
|
"playwright/missing-playwright-await": "warn",
|
||||||
"playwright/no-conditional-expect": "off",
|
"playwright/no-conditional-expect": "off",
|
||||||
"playwright/no-conditional-in-test": "off",
|
"playwright/no-conditional-in-test": "off",
|
||||||
"playwright/no-duplicate-hooks": "error",
|
"playwright/no-duplicate-hooks": "warn",
|
||||||
"playwright/no-element-handle": "warn",
|
"playwright/no-element-handle": "warn",
|
||||||
"playwright/no-eval": "warn",
|
"playwright/no-eval": "warn",
|
||||||
"playwright/no-focused-test": "error",
|
"playwright/no-focused-test": "warn",
|
||||||
"playwright/no-force-option": "warn",
|
"playwright/no-force-option": "warn",
|
||||||
"playwright/no-nested-step": "warn",
|
"playwright/no-nested-step": "warn",
|
||||||
"playwright/no-networkidle": "error",
|
"playwright/no-networkidle": "warn",
|
||||||
"playwright/no-page-pause": "warn",
|
"playwright/no-page-pause": "warn",
|
||||||
"playwright/no-raw-locators": "warn",
|
"playwright/no-raw-locators": "warn",
|
||||||
"playwright/no-skipped-test": "error",
|
"playwright/no-skipped-test": "warn",
|
||||||
"playwright/no-standalone-expect": "error",
|
"playwright/no-standalone-expect": "warn",
|
||||||
"playwright/no-unsafe-references": "error",
|
"playwright/no-unsafe-references": "warn",
|
||||||
"playwright/no-useless-await": "warn",
|
"playwright/no-useless-await": "warn",
|
||||||
"playwright/no-useless-not": "warn",
|
"playwright/no-useless-not": "warn",
|
||||||
"playwright/no-wait-for-selector": "warn",
|
"playwright/no-wait-for-selector": "warn",
|
||||||
"playwright/no-wait-for-timeout": "off",
|
"playwright/no-wait-for-timeout": "off",
|
||||||
"playwright/prefer-web-first-assertions": "warn",
|
"playwright/prefer-web-first-assertions": "warn",
|
||||||
"playwright/valid-describe-callback": "error",
|
"playwright/valid-describe-callback": "warn",
|
||||||
"playwright/valid-expect": "off",
|
"playwright/valid-expect": "off",
|
||||||
"playwright/valid-expect-in-promise": "off",
|
"playwright/valid-expect-in-promise": "off",
|
||||||
"playwright/valid-title": "off"
|
"playwright/valid-title": "off"
|
||||||
|
@@ -16,6 +16,25 @@
|
|||||||
"C279220": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
"C279220": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||||
"C279221": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
"C279221": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||||
"C325006": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
"C325006": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C280025": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C289880": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C289881": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C297659": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C280077": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C289903": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C277224": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C289893": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C290014": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C290017": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C279162": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C290012": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C289988": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C289991": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C279177": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C306965": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C217095": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C280116": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
|
"C280081": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||||
"C213097": "https://alfresco.atlassian.net/browse/ACS-5479",
|
"C213097": "https://alfresco.atlassian.net/browse/ACS-5479",
|
||||||
"C269007" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
"C269007" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
||||||
"C307106" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
"C307106" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
||||||
|
@@ -1671,10 +1671,12 @@ describe('ContentManagementService', () => {
|
|||||||
|
|
||||||
spyOn(nodesApiService.nodeUpdated, 'next');
|
spyOn(nodesApiService.nodeUpdated, 'next');
|
||||||
spyOn(dialog, 'open').and.returnValue(mockDialogInstance);
|
spyOn(dialog, 'open').and.returnValue(mockDialogInstance);
|
||||||
|
spyOn(store, 'dispatch').and.callThrough();
|
||||||
|
|
||||||
contentManagementService.editFolder(node);
|
contentManagementService.editFolder(node);
|
||||||
|
|
||||||
expect(nodesApiService.nodeUpdated.next).toHaveBeenCalledWith(newNode);
|
expect(nodesApiService.nodeUpdated.next).toHaveBeenCalledWith(newNode);
|
||||||
|
expect(store.dispatch['calls'].argsFor(0)[0]).toEqual(new SetSelectedNodesAction([{ entry: newNode }]));
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should focus element indicated by passed selector after closing modal', () => {
|
it('should focus element indicated by passed selector after closing modal', () => {
|
||||||
|
@@ -254,6 +254,7 @@ export class ContentManagementService {
|
|||||||
|
|
||||||
dialog.afterClosed().subscribe((node) => {
|
dialog.afterClosed().subscribe((node) => {
|
||||||
if (node) {
|
if (node) {
|
||||||
|
this.store.dispatch(new SetSelectedNodesAction([{ entry: node }]));
|
||||||
this.nodesApiService.nodeUpdated.next(node);
|
this.nodesApiService.nodeUpdated.next(node);
|
||||||
}
|
}
|
||||||
this.focusAfterClose(focusedElementOnCloseSelector);
|
this.focusAfterClose(focusedElementOnCloseSelector);
|
||||||
|
Reference in New Issue
Block a user