]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: update health-icon pipe tests for Carbon icons
authorAfreen Misbah <afreen@ibm.com>
Sun, 17 May 2026 10:26:22 +0000 (15:56 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 19 May 2026 13:10:55 +0000 (18:40 +0530)
Update test expectations to match Carbon icon names instead of
fork-awesome class names:
- 'fa fa-check-circle' -> 'success'
- 'fa fa-exclamation-triangle' -> 'warningAltFilled'
- 'fa fa-exclamation-circle' -> 'error'

Signed-off-by: Afreen Misbah <afreen@ibm.com>
Assisted-by: Claude
Fixes: https://tracker.ceph.com/issues/76631
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/health-icon.pipe.spec.ts

index e4450d9e1c1b996fdaa70939ac5a5d65a4ab17cc..25b756db3b1a3a31e45907a17fc7f2fdf128605a 100644 (file)
@@ -7,14 +7,14 @@ describe('HealthIconPipe', () => {
   });
 
   it('transforms "HEALTH_OK"', () => {
-    expect(pipe.transform('HEALTH_OK')).toEqual('fa fa-check-circle');
+    expect(pipe.transform('HEALTH_OK')).toEqual('success');
   });
 
   it('transforms "HEALTH_WARN"', () => {
-    expect(pipe.transform('HEALTH_WARN')).toEqual('fa fa-exclamation-triangle');
+    expect(pipe.transform('HEALTH_WARN')).toEqual('warningAltFilled');
   });
 
   it('transforms "HEALTH_ERR"', () => {
-    expect(pipe.transform('HEALTH_ERR')).toEqual('fa fa-exclamation-circle');
+    expect(pipe.transform('HEALTH_ERR')).toEqual('error');
   });
 });