[ACS-9702] Restore focus after closing dialog (#4590)

* [ACS-9702] restore focus after closing dialog

* [ACS-9702] link ticket to excluded test
This commit is contained in:
Mykyta Maliarchuk
2025-06-02 11:50:16 +02:00
committed by GitHub
parent 377cfae13a
commit 8c3bf4738f
4 changed files with 16 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ describe('ManageRulesSmartComponent', () => {
expect(ruleDetails).toBeFalsy();
});
// TODO: flaky test that needs review
// TODO: [ACS-9719] flaky test that needs review
// eslint-disable-next-line ban/ban
xit('should call deleteRule() if confirmation dialog returns true', () => {
const dialog = TestBed.inject(MatDialog);

View File

@@ -223,7 +223,8 @@ export class ManageRulesSmartComponent implements OnInit {
title: 'ACA_FOLDER_RULES.CONFIRMATION_DIALOG.DELETE_RULE.TITLE',
message: 'ACA_FOLDER_RULES.CONFIRMATION_DIALOG.DELETE_RULE.MESSAGE'
},
minWidth: '346px'
minWidth: '346px',
restoreFocus: true
})
.afterClosed()
.subscribe((result) => {