Add onClosed event to ModelView dialogs (#17531)

* Add onClosed event to ModelView dialogs

* Use defined type

* Fix compile

* fix tests

* fix tests2

* Remove unused
This commit is contained in:
Charles Gagnon
2021-10-28 20:53:20 -07:00
committed by GitHub
parent 62b6e781ce
commit 82805638ad
12 changed files with 82 additions and 15 deletions

View File

@@ -395,15 +395,13 @@ describe('ProjectsController', function (): void {
return Promise.resolve(undefined);
});
let dialogPromise = projController.object.publishProject(proj);
void projController.object.publishProject(proj);
await publishDialog.object.publishClick();
await dialogPromise;
should(holler).equal(publishHoller, 'executionCallback() is supposed to have been setup and called for Publish scenario');
dialogPromise = projController.object.publishProject(proj);
void projController.object.publishProject(proj);
await publishDialog.object.generateScriptClick();
await dialogPromise;
should(holler).equal(generateHoller, 'executionCallback() is supposed to have been setup and called for GenerateScript scenario');
});