We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d62cc6 commit ab0f71aCopy full SHA for ab0f71a
src/__tests__/suggestions.js
@@ -109,7 +109,7 @@ test('should suggest when suggest is turned on for a specific query but disabled
109
<button data-testid="foo">submit</button>
110
<button data-testid="foot">another</button>`)
111
112
- expect(() => screen.getByTestId('foo', {suggest: true})).toThrowError()
+ expect(() => screen.getByTestId('foo', {suggest: true})).toThrowError("try this:\ngetByRole('button', { name: /submit/i })")
113
})
114
115
test('should suggest getByRole when used with getBy', () => {
0 commit comments