Skip to content

Commit 3516ec1

Browse files
authored
FixTestError (#8)
1 parent 12ea7ca commit 3516ec1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer/src/components/__tests__/SettingsScreen.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('SettingsScreen', () => {
3838
});
3939
// Check for the main title "API Settings"
4040
// Using a matcher that is flexible with text content (e.g. to ignore case or partial matches if needed)
41-
expect(screen.getByText(/API Settings/i)).toBeInTheDocument();
41+
expect(screen.getByRole('heading', { name: /Settings/i, level: 4 })).toBeInTheDocument();
4242
});
4343

4444
// Add more tests:

0 commit comments

Comments
 (0)