roll back translate and add translate key
This commit is contained in:
@@ -69,10 +69,13 @@ describe("Event Error Handling", () => {
|
|||||||
renderWithProviders(<CalendarLayout />, erroredState)
|
renderWithProviders(<CalendarLayout />, erroredState)
|
||||||
);
|
);
|
||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(
|
||||||
expect(screen.getByText("Test Event"));
|
() => {
|
||||||
expect(screen.getByRole("alert")).toBeInTheDocument();
|
expect(screen.getByText("Test Event"));
|
||||||
});
|
expect(screen.getByRole("alert")).toBeInTheDocument();
|
||||||
|
},
|
||||||
|
{ timeout: 10000 }
|
||||||
|
);
|
||||||
const closeButton = screen.queryByRole("button", { name: "common.ok" });
|
const closeButton = screen.queryByRole("button", { name: "common.ok" });
|
||||||
|
|
||||||
if (closeButton) {
|
if (closeButton) {
|
||||||
@@ -82,9 +85,12 @@ describe("Event Error Handling", () => {
|
|||||||
fireEvent.click(closeButton);
|
fireEvent.click(closeButton);
|
||||||
});
|
});
|
||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(
|
||||||
expect(screen.queryByRole("alert")).not.toBeInTheDocument();
|
() => {
|
||||||
});
|
expect(screen.queryByRole("alert")).not.toBeInTheDocument();
|
||||||
|
},
|
||||||
|
{ timeout: 5000 }
|
||||||
|
);
|
||||||
|
|
||||||
const afterCloseWarnCount = consoleWarnSpy.mock.calls.length;
|
const afterCloseWarnCount = consoleWarnSpy.mock.calls.length;
|
||||||
|
|
||||||
|
|||||||
@@ -381,7 +381,6 @@ export default function EventPreviewModal({
|
|||||||
onOpenDuplicate={() => {
|
onOpenDuplicate={() => {
|
||||||
setToggleActionMenu(null);
|
setToggleActionMenu(null);
|
||||||
setHidePreview(true);
|
setHidePreview(true);
|
||||||
<<<<<<< HEAD
|
|
||||||
setOpenDuplicateModal(true);
|
setOpenDuplicateModal(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@@ -626,7 +625,6 @@ export default function EventPreviewModal({
|
|||||||
}
|
}
|
||||||
text={t("eventPreview.alarmText", {
|
text={t("eventPreview.alarmText", {
|
||||||
trigger: t(`event.form.notifications.${event.alarm.trigger}`),
|
trigger: t(`event.form.notifications.${event.alarm.trigger}`),
|
||||||
<<<<<<< HEAD
|
|
||||||
action: (() => {
|
action: (() => {
|
||||||
if (!event.alarm.action) return "";
|
if (!event.alarm.action) return "";
|
||||||
const translationKey = `event.form.notifications.${event.alarm.action}`;
|
const translationKey = `event.form.notifications.${event.alarm.action}`;
|
||||||
@@ -636,9 +634,6 @@ export default function EventPreviewModal({
|
|||||||
? event.alarm.action
|
? event.alarm.action
|
||||||
: translated;
|
: translated;
|
||||||
})(),
|
})(),
|
||||||
=======
|
|
||||||
action: event.alarm.action || "",
|
|
||||||
>>>>>>> 4ddc44d (chore: update twake-mui dependency and use radius.lg for create event button)
|
|
||||||
})}
|
})}
|
||||||
style={{
|
style={{
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
|
|||||||
+3
-1
@@ -152,7 +152,9 @@
|
|||||||
"-PT1D": "1 day before",
|
"-PT1D": "1 day before",
|
||||||
"-PT2D": "2 days before",
|
"-PT2D": "2 days before",
|
||||||
"-PT1W": "1 week before",
|
"-PT1W": "1 week before",
|
||||||
"EMAIL": "email"
|
"EMAIL": "email",
|
||||||
|
"DISPLAY": "display",
|
||||||
|
"AUDIO": "audio"
|
||||||
},
|
},
|
||||||
"showMeAs": "Show me as",
|
"showMeAs": "Show me as",
|
||||||
"free": "Free",
|
"free": "Free",
|
||||||
|
|||||||
+3
-1
@@ -154,7 +154,9 @@
|
|||||||
"-PT1D": "1 jour avant",
|
"-PT1D": "1 jour avant",
|
||||||
"-PT2D": "2 jours avant",
|
"-PT2D": "2 jours avant",
|
||||||
"-PT1W": "1 semaine avant",
|
"-PT1W": "1 semaine avant",
|
||||||
"EMAIL": "e-mail"
|
"EMAIL": "e-mail",
|
||||||
|
"DISPLAY": "affichage",
|
||||||
|
"AUDIO": "audio"
|
||||||
},
|
},
|
||||||
"showMeAs": "M'afficher comme",
|
"showMeAs": "M'afficher comme",
|
||||||
"free": "Libre",
|
"free": "Libre",
|
||||||
|
|||||||
+3
-1
@@ -154,7 +154,9 @@
|
|||||||
"-PT1D": "За 1 день",
|
"-PT1D": "За 1 день",
|
||||||
"-PT2D": "За 2 дня",
|
"-PT2D": "За 2 дня",
|
||||||
"-PT1W": "За 1 неделю",
|
"-PT1W": "За 1 неделю",
|
||||||
"EMAIL": "Email"
|
"EMAIL": "Email",
|
||||||
|
"DISPLAY": "Отображение",
|
||||||
|
"AUDIO": "Звук"
|
||||||
},
|
},
|
||||||
"showMeAs": "Показать как",
|
"showMeAs": "Показать как",
|
||||||
"free": "Свободен",
|
"free": "Свободен",
|
||||||
|
|||||||
+3
-1
@@ -152,7 +152,9 @@
|
|||||||
"-PT1D": "1 ngày trước",
|
"-PT1D": "1 ngày trước",
|
||||||
"-PT2D": "2 ngày trước",
|
"-PT2D": "2 ngày trước",
|
||||||
"-PT1W": "1 tuần trước",
|
"-PT1W": "1 tuần trước",
|
||||||
"EMAIL": "email"
|
"EMAIL": "email",
|
||||||
|
"DISPLAY": "hiển thị",
|
||||||
|
"AUDIO": "âm thanh"
|
||||||
},
|
},
|
||||||
"showMeAs": "Hiển thị tôi là",
|
"showMeAs": "Hiển thị tôi là",
|
||||||
"free": "Rảnh",
|
"free": "Rảnh",
|
||||||
|
|||||||
Reference in New Issue
Block a user