fix: AvailabilitySettings atom closing override window button (#15518)

* fix: close override window button

* fix: test
This commit is contained in:
Lauris Skraucis
2024-06-21 11:06:47 +00:00
committed by GitHub
parent 0072aba55d
commit 48e7efccb2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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");
});