Skip to content

Commit deaeef2

Browse files
committed
Adjust tests instead of removing
1 parent b3ca2fb commit deaeef2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/__tests__/get-by-errors.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ cases(
3535
query: /his/,
3636
html: `<div title="his"></div><div title="history"></div>`,
3737
},
38+
getByRole: {
39+
query: 'button',
40+
html: `<button>one</button><div role="button">two</button>`,
41+
},
3842
getByTestId: {
3943
query: /his/,
4044
html: `<div data-testid="his"></div><div data-testid="history"></div>`,
@@ -82,6 +86,10 @@ cases(
8286
query: /his/,
8387
html: `<div title="his"></div><div title="history"></div>`,
8488
},
89+
queryByRole: {
90+
query: 'button',
91+
html: `<button>one</button><div role="button">two</button>`,
92+
},
8593
queryByTestId: {
8694
query: /his/,
8795
html: `<div data-testid="his"></div><div data-testid="history"></div>`,

0 commit comments

Comments
 (0)