From 63bcce11625cb1474c60c7ba800c6e832c5bb277 Mon Sep 17 00:00:00 2001 From: Tom Pridham Date: Tue, 12 Sep 2023 12:14:28 -0600 Subject: [PATCH] fix: update testing-libary-dom to 9 (#262) Co-authored-by: Kent C. Dodds --- cypress/e2e/find.cy.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/find.cy.js b/cypress/e2e/find.cy.js index 1516213..f54f5ea 100644 --- a/cypress/e2e/find.cy.js +++ b/cypress/e2e/find.cy.js @@ -65,7 +65,7 @@ describe('find* dom-testing-library commands', () => { }) it('findAllByRole', () => { - cy.findAllByRole(/^dialog/).should('have.length', 2) + cy.findAllByRole('dialog').should('have.length', 1) }) it('findByTestId', () => { diff --git a/package.json b/package.json index f89fa63..309516f 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "license": "MIT", "dependencies": { "@babel/runtime": "^7.14.6", - "@testing-library/dom": "^8.1.0" + "@testing-library/dom": "^9.0.0" }, "devDependencies": { "cypress": "^12.0.0",