fix: AvailabilitySettings atom closing override window button (#15518)
* fix: close override window button * fix: test
This commit is contained in:
@@ -244,7 +244,7 @@ export function DialogClose(
|
||||
data-testid={props["data-testid"] || "dialog-rejection"}
|
||||
color={props.color || "minimal"}
|
||||
{...props}>
|
||||
{props.children ? props.children : t("Close")}
|
||||
{props.children ? props.children : t("close")}
|
||||
</Button>
|
||||
</Close>
|
||||
);
|
||||
|
||||
@@ -128,7 +128,7 @@ describe("Tests for Dialog component", () => {
|
||||
|
||||
test("Should use color from props in CloseDialog", async () => {
|
||||
render(<DialogComponent open color="destructive" />);
|
||||
const closeBtn = screen.getByText("Close");
|
||||
const closeBtn = screen.getByText("close");
|
||||
expect(closeBtn.classList.toString()).toContain("hover:text-red-700");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user