From 33e35a4484c26a072ef248585a1788104f2eb921 Mon Sep 17 00:00:00 2001 From: Rohan <45748283+r100-stack@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:42:20 -0400 Subject: [PATCH] =?UTF-8?q?Unit=20=F0=9F=A7=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/RadioTiles/RadioTileGroup.test.tsx | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) 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(); +});