Skip to content

Commit b18d96b

Browse files
author
Hector Arce De Las Heras
committed
Include new data-test-id to layout Component
1 parent d39e72b commit b18d96b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/layout/layoutStandAlone.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const LayoutStandAlone = ({
3737
</GridItem>
3838
</Grid>
3939
)}
40-
<Grid addPaddingForLayout config={gridConfiguration}>
40+
<Grid addPaddingForLayout config={gridConfiguration} data-testid={`${dataTestId}Main`}>
4141
<GridItem
4242
as={LayoutRoleType.main}
4343
desktop={asideContent ? main?.[DeviceBreakpointsType.DESKTOP] : main?.DESKTOP_FULL}
@@ -49,6 +49,7 @@ export const LayoutStandAlone = ({
4949
{asideContent && (
5050
<GridItem
5151
as={LayoutRoleType.aside}
52+
data-testid={`${dataTestId}Aside`}
5253
desktop={aside?.[DeviceBreakpointsType.DESKTOP]}
5354
mobile={aside?.[DeviceBreakpointsType.MOBILE]}
5455
tablet={aside?.[DeviceBreakpointsType.TABLET]}
@@ -58,7 +59,7 @@ export const LayoutStandAlone = ({
5859
)}
5960
</Grid>
6061
{footerContent && footer && (
61-
<Grid addPaddingForLayout config={gridConfiguration}>
62+
<Grid addPaddingForLayout config={gridConfiguration} data-testid={`${dataTestId}Footer`}>
6263
<GridItem
6364
as={LayoutRoleType.footer}
6465
desktop={footer[DeviceBreakpointsType.DESKTOP]}

0 commit comments

Comments
 (0)