Simplify and add tests of confirm dialog
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy / policy-instance / policy-instance.component.spec.ts
index 8f29d42..12a4c34 100644 (file)
@@ -322,6 +322,7 @@ describe("PolicyInstanceComponent", () => {
     await deleteButton.click();
 
     expect(confirmServiceSpy.openConfirmDialog).toHaveBeenCalledWith(
+      "Delete Policy",
       "Are you sure you want to delete this policy instance?"
     );
     expect(policyServiceSpy.deletePolicy).toHaveBeenCalledWith("policy1");