Skip to content

Commit 8611599

Browse files
author
MattAgn
committed
test: review byrole test titles
1 parent 18de89f commit 8611599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/queries/__tests__/role.breaking.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ test('byRole queries support hidden option', () => {
740740
});
741741

742742
describe('matches only accessible elements', () => {
743-
test('takes explicit accessible prop into account', () => {
743+
test('ignores elements with accessible={false}', () => {
744744
const { queryByRole } = render(
745745
<Pressable accessibilityRole="button" accessible={false}>
746746
<Text>Action</Text>
@@ -749,7 +749,7 @@ describe('matches only accessible elements', () => {
749749
expect(queryByRole('button', { name: 'Action' })).toBeFalsy();
750750
});
751751

752-
test('takes implicit accessible value into account', () => {
752+
test('ignores elements with accessible={undefined} and that are implicitely not accessible', () => {
753753
const { queryByRole } = render(
754754
<View accessibilityRole="menu">
755755
<Text>Action</Text>

0 commit comments

Comments
 (0)