diff --git a/app/scripts/components/common/page-header/page-header.test.tsx b/app/scripts/components/common/page-header/page-header.test.tsx
index 58bc12afb..7eb459eb6 100644
--- a/app/scripts/components/common/page-header/page-header.test.tsx
+++ b/app/scripts/components/common/page-header/page-header.test.tsx
@@ -8,7 +8,6 @@ import { NavItem, NavItemType } from './types';
import PageHeader from './index';
// @NOTE: Possible Test cases
-// light vs dark mode
// config & create dynamic nav menu list fn - different scenerios, happy vs unhappy path
const mockMainNavItems: NavItem[] = [
@@ -119,3 +118,36 @@ describe('PageHeader', () => {
expect(within(primaryNav).getByText('Submenu 1')).toBeVisible();
});
});
+
+describe('PageHeader light and dark mode', () => {
+ // @NOTE: We do not test css here, only attributes accessible via DOM
+ test('the header is in light mode by default', () => {
+ render(
+ }
+ linkProperties={mockLinkProperties}
+ // no mode specified
+ />
+ );
+ const header = screen.getByTestId('header');
+
+ expect(header.id).toEqual('mode-light');
+ });
+
+ test('the header can be changed to dark mode using the prop', () => {
+ render(
+ }
+ linkProperties={mockLinkProperties}
+ mode='dark'
+ />
+ );
+ const header = screen.getByTestId('header');
+
+ expect(header.id).toEqual('mode-dark');
+ });
+});