Skip to content

Commit 08ea96e

Browse files
Update rstest/rspack-adapter/tests/index.test.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 864612a commit 08ea96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rstest/rspack-adapter/tests/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import App from '../src/App';
55
test('renders the main page', () => {
66
const testMessage = 'Rspack + React + TypeScript';
77
render(<App />);
8-
expect(screen.getByText(testMessage)).toBeInTheDocument();
8+
expect(screen.getByRole('heading', { name: testMessage })).toBeInTheDocument();
99
});

0 commit comments

Comments
 (0)