Skip to content

Commit dbb1c7f

Browse files
committed
test: add valid test
1 parent f3d199e commit dbb1c7f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/lib/rules/no-node-access.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ ruleTester.run(RULE_NAME, rule, {
163163
expect(screen.getByText('SomeComponent')).toBeInTheDocument();
164164
`,
165165
},
166+
{
167+
code: `
168+
import userEvent from '@testing-library/user-event';
169+
import { screen } from '${testingFramework}';
170+
171+
const buttonText = screen.getByText('submit');
172+
const user = userEvent.setup();
173+
user.click(buttonText);
174+
`,
175+
},
166176
...EVENTS_SIMULATORS.map((simulator) => ({
167177
code: `
168178
import { screen } from '${testingFramework}';

0 commit comments

Comments
 (0)