Skip to content

Commit d15aa14

Browse files
committed
fix: linting errors
1 parent 0e05a00 commit d15aa14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/Collaboration/__tests__/Collaboration.test.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ describe('Collaboration Component', () => {
6060
const input = screen.getByPlaceholderText(/search by title/i);
6161
fireEvent.change(input, { target: { value: 'React' } });
6262

63-
// FIX: Instead of .closest('form'), we find the button by its role/text
64-
// This adheres to testing-library/no-node-access
65-
const goButton = screen.getByRole('button', { name: /go/i });
63+
// FIX: Using exact string 'Go' instead of regex /go/i to avoid
64+
// matching 'Select Categories' and adhering to no-node-access
65+
const goButton = screen.getByRole('button', { name: 'Go' });
6666
fireEvent.click(goButton);
6767

6868
// Verify that the search parameter was included in at least one fetch call

0 commit comments

Comments
 (0)