Skip to content

Commit ca30f16

Browse files
committed
style: fix failing test
1 parent de58d39 commit ca30f16

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/pages/sidepanel/sections/TagConfig.test.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ describe('TagConfig', () => {
4848
expect(panel).toHaveStyle({ backgroundColor: '#272728' });
4949
});
5050

51-
it('should render with rounded top corners', () => {
51+
it('should render with rounded corners', () => {
5252
const { container } = renderWithTheme(<TagConfig tagConfig={mockTagConfig} />);
5353

5454
const panel = container.querySelector('.MuiBox-root');
5555
expect(panel).toBeInTheDocument();
56-
// Top corners are rounded (8px), bottom corners are sharp (0px)
57-
// Check for borderRadius property (works better in JSDOM than individual corner properties)
58-
expect(panel).toHaveStyle({ borderRadius: '8px 8px 0 0' });
56+
// All corners are rounded (8px)
57+
expect(panel).toHaveStyle({ borderRadius: '8px' });
5958
});
6059

6160
it('should handle empty tagConfig', () => {

0 commit comments

Comments
 (0)