diff --git a/packages/itwinui-react/src/core/RadioTiles/RadioTileGroup.test.tsx b/packages/itwinui-react/src/core/RadioTiles/RadioTileGroup.test.tsx index 858156d9d92..5142a1d480b 100644 --- a/packages/itwinui-react/src/core/RadioTiles/RadioTileGroup.test.tsx +++ b/packages/itwinui-react/src/core/RadioTiles/RadioTileGroup.test.tsx @@ -42,3 +42,48 @@ it('should render with label', () => { expect(label).toBeTruthy(); expect(label.textContent).toBe('My tiles'); }); + +it('should apply all custom props', () => { + const { container } = render( + + + + , + ); + + expect(container.querySelector('.iui-input-grid.root-props')).toBeTruthy(); + expect( + container.querySelector('.iui-input-grid > .iui-input-label.label-props'), + ).toBeTruthy(); + expect( + container.querySelector('.iui-input-grid > .iui-input-group.inner-props'), + ).toBeTruthy(); + expect( + container.querySelector( + '.iui-input-grid > .iui-input-group > .iui-radio-tile-container.tile-container-props', + ), + ).toBeTruthy(); + expect( + container.querySelector( + '.iui-input-grid > .iui-status-message > .message-content-props', + ), + ).toBeTruthy(); +});