Skip to content

Commit 0ec0620

Browse files
author
Kent C. Dodds
committed
test: update snapshots and broken test
1 parent bba26fb commit 0ec0620

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cypress/integration/commands.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('dom-testing-library commands', () => {
2929
})
3030

3131
it('getAllByText', () => {
32-
cy.getAllByText('Jackie Chan').click({multiple: true})
32+
cy.getAllByText(/^Jackie Chan/).click({multiple: true})
3333
})
3434

3535
it('queryByText', () => {

src/__tests__/__snapshots__/commands.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ Array [
2222
"queryAllByTestId",
2323
"getByTestId",
2424
"getAllByTestId",
25+
"queryByTitle",
26+
"queryAllByTitle",
27+
"getByTitle",
28+
"getAllByTitle",
2529
]
2630
`;

0 commit comments

Comments
 (0)