@@ -22,15 +22,15 @@ const props = {
22
22
23
23
describe ( 'Page' , ( ) => {
24
24
test ( 'Check page vertical layout example against snapshot' , ( ) => {
25
- const Header = < Masthead /> ;
25
+ const masthead = < Masthead /> ;
26
26
const Sidebar = (
27
27
< PageSidebar isSidebarOpen >
28
28
< PageSidebarBody > Navigation</ PageSidebarBody >
29
29
</ PageSidebar >
30
30
) ;
31
31
32
32
const { asFragment } = render (
33
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
33
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
34
34
< PageSection variant = "default" > Section with default background</ PageSection >
35
35
</ Page >
36
36
) ;
@@ -39,15 +39,15 @@ describe('Page', () => {
39
39
} ) ;
40
40
41
41
test ( 'Check dark page against snapshot' , ( ) => {
42
- const Header = < Masthead /> ;
42
+ const masthead = < Masthead /> ;
43
43
const Sidebar = (
44
44
< PageSidebar isSidebarOpen >
45
45
< PageSidebarBody > Navigation</ PageSidebarBody >
46
46
</ PageSidebar >
47
47
) ;
48
48
49
49
const { asFragment } = render (
50
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
50
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
51
51
< PageSection variant = "default" > Section with default background</ PageSection >
52
52
</ Page >
53
53
) ;
@@ -56,11 +56,11 @@ describe('Page', () => {
56
56
} ) ;
57
57
58
58
test ( 'Check page horizontal layout example against snapshot' , ( ) => {
59
- const Header = < Masthead /> ;
59
+ const masthead = < Masthead /> ;
60
60
const Sidebar = < PageSidebar isSidebarOpen /> ;
61
61
62
62
const { asFragment } = render (
63
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
63
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
64
64
< PageSection variant = "default" > Section with default background</ PageSection >
65
65
</ Page >
66
66
) ;
@@ -69,7 +69,7 @@ describe('Page', () => {
69
69
} ) ;
70
70
71
71
test ( 'Check page to verify breadcrumb is created' , ( ) => {
72
- const Header = < Masthead /> ;
72
+ const masthead = < Masthead /> ;
73
73
const Sidebar = < PageSidebar isSidebarOpen /> ;
74
74
const PageBreadcrumb = ( ) => (
75
75
< Breadcrumb >
@@ -83,7 +83,7 @@ describe('Page', () => {
83
83
) ;
84
84
85
85
const { asFragment } = render (
86
- < Page { ...props } header = { Header } sidebar = { Sidebar } breadcrumb = { < PageBreadcrumb /> } >
86
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } breadcrumb = { < PageBreadcrumb /> } >
87
87
< PageSection variant = "default" > Section with default background</ PageSection >
88
88
</ Page >
89
89
) ;
@@ -93,7 +93,7 @@ describe('Page', () => {
93
93
} ) ;
94
94
95
95
test ( 'Verify sticky top breadcrumb on all height breakpoints' , ( ) => {
96
- const Header = < Masthead /> ;
96
+ const masthead = < Masthead /> ;
97
97
const Sidebar = < PageSidebar isSidebarOpen /> ;
98
98
const PageBreadcrumb = ( ) => (
99
99
< Breadcrumb >
@@ -109,7 +109,7 @@ describe('Page', () => {
109
109
const { asFragment } = render (
110
110
< Page
111
111
{ ...props }
112
- header = { Header }
112
+ masthead = { masthead }
113
113
sidebar = { Sidebar }
114
114
breadcrumb = { < PageBreadcrumb /> }
115
115
breadcrumbProps = { { stickyOnBreakpoint : { sm : 'top' , md : 'top' , lg : 'top' , xl : 'top' , '2xl' : 'top' } } }
@@ -123,7 +123,7 @@ describe('Page', () => {
123
123
} ) ;
124
124
125
125
test ( 'Verify sticky bottom breadcrumb on all height breakpoints' , ( ) => {
126
- const Header = < Masthead /> ;
126
+ const masthead = < Masthead /> ;
127
127
const Sidebar = < PageSidebar isSidebarOpen /> ;
128
128
const PageBreadcrumb = ( ) => (
129
129
< Breadcrumb >
@@ -139,7 +139,7 @@ describe('Page', () => {
139
139
const { asFragment } = render (
140
140
< Page
141
141
{ ...props }
142
- header = { Header }
142
+ masthead = { masthead }
143
143
sidebar = { Sidebar }
144
144
breadcrumb = { < PageBreadcrumb /> }
145
145
breadcrumbProps = { {
@@ -155,11 +155,11 @@ describe('Page', () => {
155
155
} ) ;
156
156
157
157
test ( 'Check page to verify breadcrumb is created - PageBreadcrumb syntax' , ( ) => {
158
- const Header = < Masthead /> ;
158
+ const masthead = < Masthead /> ;
159
159
const Sidebar = < PageSidebar isSidebarOpen /> ;
160
160
161
161
const { asFragment } = render (
162
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
162
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
163
163
< PageBreadcrumb >
164
164
< Breadcrumb >
165
165
< BreadcrumbItem > Section Home</ BreadcrumbItem >
@@ -179,11 +179,11 @@ describe('Page', () => {
179
179
} ) ;
180
180
181
181
test ( 'Verify sticky top breadcrumb on all height breakpoints - PageBreadcrumb syntax' , ( ) => {
182
- const Header = < Masthead /> ;
182
+ const masthead = < Masthead /> ;
183
183
const Sidebar = < PageSidebar isSidebarOpen /> ;
184
184
185
185
const { asFragment } = render (
186
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
186
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
187
187
< PageBreadcrumb stickyOnBreakpoint = { { sm : 'top' , md : 'top' , lg : 'top' , xl : 'top' , '2xl' : 'top' } } >
188
188
< Breadcrumb >
189
189
< BreadcrumbItem > Section Home</ BreadcrumbItem >
@@ -203,11 +203,11 @@ describe('Page', () => {
203
203
} ) ;
204
204
205
205
test ( 'Sticky bottom breadcrumb on all height breakpoints - PageBreadcrumb syntax' , ( ) => {
206
- const Header = < Masthead /> ;
206
+ const masthead = < Masthead /> ;
207
207
const Sidebar = < PageSidebar isSidebarOpen /> ;
208
208
209
209
const { asFragment } = render (
210
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
210
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
211
211
< PageBreadcrumb
212
212
stickyOnBreakpoint = { { sm : 'bottom' , md : 'bottom' , lg : 'bottom' , xl : 'bottom' , '2xl' : 'bottom' } }
213
213
>
@@ -229,11 +229,11 @@ describe('Page', () => {
229
229
} ) ;
230
230
231
231
test ( 'Check page to verify nav is created - PageNavigation syntax' , ( ) => {
232
- const Header = < Masthead /> ;
232
+ const masthead = < Masthead /> ;
233
233
const Sidebar = < PageSidebar isSidebarOpen /> ;
234
234
235
235
const { asFragment } = render (
236
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
236
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
237
237
< PageNavigation >
238
238
< Nav aria-label = "Nav" variant = "horizontal-subnav" >
239
239
< NavList >
@@ -256,11 +256,11 @@ describe('Page', () => {
256
256
} ) ;
257
257
258
258
test ( 'Check page to verify grouped nav and breadcrumb - new components syntax' , ( ) => {
259
- const Header = < Masthead /> ;
259
+ const masthead = < Masthead /> ;
260
260
const Sidebar = < PageSidebar isSidebarOpen /> ;
261
261
262
262
const { asFragment } = render (
263
- < Page { ...props } header = { Header } sidebar = { Sidebar } >
263
+ < Page { ...props } masthead = { masthead } sidebar = { Sidebar } >
264
264
< PageGroup stickyOnBreakpoint = { { default : 'bottom' } } >
265
265
< PageBreadcrumb >
266
266
< Breadcrumb >
@@ -295,7 +295,7 @@ describe('Page', () => {
295
295
} ) ;
296
296
297
297
test ( 'Check page to verify grouped nav and breadcrumb - old / props syntax' , ( ) => {
298
- const Header = < Masthead /> ;
298
+ const masthead = < Masthead /> ;
299
299
const Sidebar = < PageSidebar isSidebarOpen /> ;
300
300
const crumb = (
301
301
< PageBreadcrumb >
@@ -326,7 +326,7 @@ describe('Page', () => {
326
326
const { asFragment } = render (
327
327
< Page
328
328
{ ...props }
329
- header = { Header }
329
+ masthead = { masthead }
330
330
sidebar = { Sidebar }
331
331
breadcrumb = { crumb }
332
332
horizontalSubnav = { nav }
@@ -349,7 +349,7 @@ describe('Page', () => {
349
349
} ) ;
350
350
351
351
test ( 'Check page to verify skip to content points to main content region' , ( ) => {
352
- const Header = < Masthead /> ;
352
+ const masthead = < Masthead /> ;
353
353
const Sidebar = < PageSidebar isSidebarOpen /> ;
354
354
const PageBreadcrumb = (
355
355
< Breadcrumb >
@@ -367,7 +367,7 @@ describe('Page', () => {
367
367
const { asFragment } = render (
368
368
< Page
369
369
{ ...props }
370
- header = { Header }
370
+ masthead = { masthead }
371
371
sidebar = { Sidebar }
372
372
breadcrumb = { PageBreadcrumb }
373
373
skipToContent = { PageSkipToContent }
0 commit comments