Skip to content

Commit 1d10ece

Browse files
committed
test: add failing test
1 parent fe04b50 commit 1d10ece

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/__tests__/role.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,3 +543,10 @@ describe('configuration', () => {
543543
}
544544
})
545545
})
546+
547+
test('should get button using his text content when title is empty', () => {
548+
const {getByRole} = renderIntoDocument(
549+
'<button title="">click on me</button>',
550+
)
551+
expect(getByRole('button', {name: 'click on me'})).toBeInTheDocument()
552+
})

0 commit comments

Comments
 (0)