Skip to content

Commit

Permalink
fix: adjust selector for close button
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhMani-okta committed Aug 14, 2024
1 parent 665ee3b commit 59b664d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions packages/odyssey-react-mui/src/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ export const BannerTestSelectors = {
templateVariableNames: ["linkText"],
},
},
close: {
closeButton: {
selector: {
method: "ByLabelText",
text: "${labelText}",
method: "ByRole",
options: {
name: "${labelText}",
},
role: "button",
templateVariableNames: ["labelText"],
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const Dismissible: StoryObj<BannerProps> = {
templateArgs: {
role: "alert",
},
}).select?.("close", {
}).select?.("closeButton", {
labelText: "Close",
}).element;

Expand Down

0 comments on commit 59b664d

Please sign in to comment.