Skip to content

Commit fe0558e

Browse files
committed
style: fix failing test
1 parent a571025 commit fe0558e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ describe('TagConfig', () => {
5454
const panel = container.querySelector('.MuiBox-root');
5555
expect(panel).toBeInTheDocument();
5656
// Top corners are rounded (8px), bottom corners are sharp (0px)
57-
const styles = window.getComputedStyle(panel);
58-
expect(styles.borderTopLeftRadius).toBeTruthy();
59-
expect(styles.borderTopRightRadius).toBeTruthy();
57+
// Check for borderRadius property (works better in JSDOM than individual corner properties)
58+
expect(panel).toHaveStyle({ borderRadius: '8px 8px 0 0' });
6059
});
6160

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

0 commit comments

Comments
 (0)