Skip to content

Commit

Permalink
MUI update - querySelector change for role
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsalehinipg committed Nov 1, 2023
1 parent 71bb1ba commit 0a74080
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 40 deletions.
74 changes: 37 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.16",
"@mui/material": "^5.14.11",
"@mui/material": "^5.14.16",
"@mui/styles": "^5.14.16",
"@mui/x-data-grid": "^6.17.0",
"@playwright/test": "^1.39.0",
Expand Down
2 changes: 1 addition & 1 deletion src/RegistrationForm/RegistrationForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("RegistrationForm", () => {

// get the button that opens the dropdown, which is a sibling of the input
const selectButton =
elements.inputs.team.parentNode.querySelector("[role=button]");
elements.inputs.team.parentNode.querySelector("[role=combobox]");

// open the select dropdown
await user.click(selectButton);
Expand Down
3 changes: 2 additions & 1 deletion src/Select/Select.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen } from "@testing-library/react";

import React from "react";
import Select from "./";
import userEvent from "@testing-library/user-event";
Expand Down Expand Up @@ -42,7 +43,7 @@ describe("Select", () => {
const value = options[3];

// get the button that opens the dropdown, which is a sibling of the input
const selectButton = container.parentNode.querySelector("[role=button]");
const selectButton = container.parentNode.querySelector("[role=combobox]");

// open the select dropdown
await user.click(selectButton);
Expand Down

0 comments on commit 0a74080

Please sign in to comment.