Skip to content

Commit d016088

Browse files
committed
chore(tabs): add test
1 parent 633c7e6 commit d016088

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/react-core/src/components/Tabs/__tests__/Tabs.test.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,3 +562,15 @@ test('should render an enabled add button', () => {
562562
const addButton = screen.getByLabelText('add-label');
563563
expect(addButton).not.toBeDisabled();
564564
});
565+
566+
test(`should render with custom inline style and accent position inline style`, () => {
567+
render(
568+
<Tabs role="region" style="background-color: #12345;">
569+
<Tab title="Test title" eventKey={0}>
570+
Tab Content
571+
</Tab>
572+
</Tabs>
573+
);
574+
575+
expect(screen.getByRole('region')).toHaveStyle(`background-color: #12345;--pf-v6-c-tabs--link-accent--start: 0px;`);
576+
});

0 commit comments

Comments
 (0)