@@ -22,15 +22,15 @@ const props = {
2222
2323describe ( 'Page' , ( ) => {
2424 test ( 'Check page vertical layout example against snapshot' , ( ) => {
25- const Header = < Masthead /> ;
25+ const masthead = < Masthead /> ;
2626 const Sidebar = (
2727 < PageSidebar isSidebarOpen >
2828 < PageSidebarBody > Navigation</ PageSidebarBody >
2929 </ PageSidebar >
3030 ) ;
3131
3232 const { asFragment } = render (
33- < Page { ...props } header = { Header } sidebar = { Sidebar } >
33+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
3434 < PageSection variant = "default" > Section with default background</ PageSection >
3535 </ Page >
3636 ) ;
@@ -39,15 +39,15 @@ describe('Page', () => {
3939 } ) ;
4040
4141 test ( 'Check dark page against snapshot' , ( ) => {
42- const Header = < Masthead /> ;
42+ const masthead = < Masthead /> ;
4343 const Sidebar = (
4444 < PageSidebar isSidebarOpen >
4545 < PageSidebarBody > Navigation</ PageSidebarBody >
4646 </ PageSidebar >
4747 ) ;
4848
4949 const { asFragment } = render (
50- < Page { ...props } header = { Header } sidebar = { Sidebar } >
50+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
5151 < PageSection variant = "default" > Section with default background</ PageSection >
5252 </ Page >
5353 ) ;
@@ -56,11 +56,11 @@ describe('Page', () => {
5656 } ) ;
5757
5858 test ( 'Check page horizontal layout example against snapshot' , ( ) => {
59- const Header = < Masthead /> ;
59+ const masthead = < Masthead /> ;
6060 const Sidebar = < PageSidebar isSidebarOpen /> ;
6161
6262 const { asFragment } = render (
63- < Page { ...props } header = { Header } sidebar = { Sidebar } >
63+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
6464 < PageSection variant = "default" > Section with default background</ PageSection >
6565 </ Page >
6666 ) ;
@@ -69,7 +69,7 @@ describe('Page', () => {
6969 } ) ;
7070
7171 test ( 'Check page to verify breadcrumb is created' , ( ) => {
72- const Header = < Masthead /> ;
72+ const masthead = < Masthead /> ;
7373 const Sidebar = < PageSidebar isSidebarOpen /> ;
7474 const PageBreadcrumb = ( ) => (
7575 < Breadcrumb >
@@ -83,7 +83,7 @@ describe('Page', () => {
8383 ) ;
8484
8585 const { asFragment } = render (
86- < Page { ...props } header = { Header } sidebar = { Sidebar } breadcrumb = { < PageBreadcrumb /> } >
86+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } breadcrumb = { < PageBreadcrumb /> } >
8787 < PageSection variant = "default" > Section with default background</ PageSection >
8888 </ Page >
8989 ) ;
@@ -93,7 +93,7 @@ describe('Page', () => {
9393 } ) ;
9494
9595 test ( 'Verify sticky top breadcrumb on all height breakpoints' , ( ) => {
96- const Header = < Masthead /> ;
96+ const masthead = < Masthead /> ;
9797 const Sidebar = < PageSidebar isSidebarOpen /> ;
9898 const PageBreadcrumb = ( ) => (
9999 < Breadcrumb >
@@ -109,7 +109,7 @@ describe('Page', () => {
109109 const { asFragment } = render (
110110 < Page
111111 { ...props }
112- header = { Header }
112+ masthead = { masthead }
113113 sidebar = { Sidebar }
114114 breadcrumb = { < PageBreadcrumb /> }
115115 breadcrumbProps = { { stickyOnBreakpoint : { sm : 'top' , md : 'top' , lg : 'top' , xl : 'top' , '2xl' : 'top' } } }
@@ -123,7 +123,7 @@ describe('Page', () => {
123123 } ) ;
124124
125125 test ( 'Verify sticky bottom breadcrumb on all height breakpoints' , ( ) => {
126- const Header = < Masthead /> ;
126+ const masthead = < Masthead /> ;
127127 const Sidebar = < PageSidebar isSidebarOpen /> ;
128128 const PageBreadcrumb = ( ) => (
129129 < Breadcrumb >
@@ -139,7 +139,7 @@ describe('Page', () => {
139139 const { asFragment } = render (
140140 < Page
141141 { ...props }
142- header = { Header }
142+ masthead = { masthead }
143143 sidebar = { Sidebar }
144144 breadcrumb = { < PageBreadcrumb /> }
145145 breadcrumbProps = { {
@@ -155,11 +155,11 @@ describe('Page', () => {
155155 } ) ;
156156
157157 test ( 'Check page to verify breadcrumb is created - PageBreadcrumb syntax' , ( ) => {
158- const Header = < Masthead /> ;
158+ const masthead = < Masthead /> ;
159159 const Sidebar = < PageSidebar isSidebarOpen /> ;
160160
161161 const { asFragment } = render (
162- < Page { ...props } header = { Header } sidebar = { Sidebar } >
162+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
163163 < PageBreadcrumb >
164164 < Breadcrumb >
165165 < BreadcrumbItem > Section Home</ BreadcrumbItem >
@@ -179,11 +179,11 @@ describe('Page', () => {
179179 } ) ;
180180
181181 test ( 'Verify sticky top breadcrumb on all height breakpoints - PageBreadcrumb syntax' , ( ) => {
182- const Header = < Masthead /> ;
182+ const masthead = < Masthead /> ;
183183 const Sidebar = < PageSidebar isSidebarOpen /> ;
184184
185185 const { asFragment } = render (
186- < Page { ...props } header = { Header } sidebar = { Sidebar } >
186+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
187187 < PageBreadcrumb stickyOnBreakpoint = { { sm : 'top' , md : 'top' , lg : 'top' , xl : 'top' , '2xl' : 'top' } } >
188188 < Breadcrumb >
189189 < BreadcrumbItem > Section Home</ BreadcrumbItem >
@@ -203,11 +203,11 @@ describe('Page', () => {
203203 } ) ;
204204
205205 test ( 'Sticky bottom breadcrumb on all height breakpoints - PageBreadcrumb syntax' , ( ) => {
206- const Header = < Masthead /> ;
206+ const masthead = < Masthead /> ;
207207 const Sidebar = < PageSidebar isSidebarOpen /> ;
208208
209209 const { asFragment } = render (
210- < Page { ...props } header = { Header } sidebar = { Sidebar } >
210+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
211211 < PageBreadcrumb
212212 stickyOnBreakpoint = { { sm : 'bottom' , md : 'bottom' , lg : 'bottom' , xl : 'bottom' , '2xl' : 'bottom' } }
213213 >
@@ -229,11 +229,11 @@ describe('Page', () => {
229229 } ) ;
230230
231231 test ( 'Check page to verify nav is created - PageNavigation syntax' , ( ) => {
232- const Header = < Masthead /> ;
232+ const masthead = < Masthead /> ;
233233 const Sidebar = < PageSidebar isSidebarOpen /> ;
234234
235235 const { asFragment } = render (
236- < Page { ...props } header = { Header } sidebar = { Sidebar } >
236+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
237237 < PageNavigation >
238238 < Nav aria-label = "Nav" variant = "horizontal-subnav" >
239239 < NavList >
@@ -256,11 +256,11 @@ describe('Page', () => {
256256 } ) ;
257257
258258 test ( 'Check page to verify grouped nav and breadcrumb - new components syntax' , ( ) => {
259- const Header = < Masthead /> ;
259+ const masthead = < Masthead /> ;
260260 const Sidebar = < PageSidebar isSidebarOpen /> ;
261261
262262 const { asFragment } = render (
263- < Page { ...props } header = { Header } sidebar = { Sidebar } >
263+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
264264 < PageGroup stickyOnBreakpoint = { { default : 'bottom' } } >
265265 < PageBreadcrumb >
266266 < Breadcrumb >
@@ -295,7 +295,7 @@ describe('Page', () => {
295295 } ) ;
296296
297297 test ( 'Check page to verify grouped nav and breadcrumb - old / props syntax' , ( ) => {
298- const Header = < Masthead /> ;
298+ const masthead = < Masthead /> ;
299299 const Sidebar = < PageSidebar isSidebarOpen /> ;
300300 const crumb = (
301301 < PageBreadcrumb >
@@ -326,7 +326,7 @@ describe('Page', () => {
326326 const { asFragment } = render (
327327 < Page
328328 { ...props }
329- header = { Header }
329+ masthead = { masthead }
330330 sidebar = { Sidebar }
331331 breadcrumb = { crumb }
332332 horizontalSubnav = { nav }
@@ -349,7 +349,7 @@ describe('Page', () => {
349349 } ) ;
350350
351351 test ( 'Check page to verify skip to content points to main content region' , ( ) => {
352- const Header = < Masthead /> ;
352+ const masthead = < Masthead /> ;
353353 const Sidebar = < PageSidebar isSidebarOpen /> ;
354354 const PageBreadcrumb = (
355355 < Breadcrumb >
@@ -367,7 +367,7 @@ describe('Page', () => {
367367 const { asFragment } = render (
368368 < Page
369369 { ...props }
370- header = { Header }
370+ masthead = { masthead }
371371 sidebar = { Sidebar }
372372 breadcrumb = { PageBreadcrumb }
373373 skipToContent = { PageSkipToContent }
0 commit comments