feat: add internationalization message platform
This commit is contained in:
@@ -55,7 +55,7 @@ function inputWith(
|
||||
value: {
|
||||
resourceId: "created",
|
||||
title: name,
|
||||
createdAtLabel: null,
|
||||
createdAt: null,
|
||||
},
|
||||
}),
|
||||
getResource: async (resourceId) => ({
|
||||
@@ -63,7 +63,7 @@ function inputWith(
|
||||
value: {
|
||||
resourceId,
|
||||
title: "Detail",
|
||||
createdAtLabel: null,
|
||||
createdAt: null,
|
||||
},
|
||||
}),
|
||||
...overrides,
|
||||
@@ -90,7 +90,7 @@ describe("reference feature page states", () => {
|
||||
{
|
||||
resourceId: "reference-1",
|
||||
title: "Loaded",
|
||||
createdAtLabel: null,
|
||||
createdAt: null,
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -191,7 +191,7 @@ describe("reference feature page states", () => {
|
||||
{
|
||||
resourceId: "existing",
|
||||
title: "Existing",
|
||||
createdAtLabel: null,
|
||||
createdAt: null,
|
||||
},
|
||||
],
|
||||
})
|
||||
@@ -209,7 +209,7 @@ describe("reference feature page states", () => {
|
||||
{
|
||||
resourceId: "recovered",
|
||||
title: "Recovered",
|
||||
createdAtLabel: null,
|
||||
createdAt: null,
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -217,7 +217,9 @@ describe("reference feature page states", () => {
|
||||
await screen.findByText("Existing");
|
||||
await user.click(screen.getByRole("button", { name: "새로고침" }));
|
||||
|
||||
expect(await screen.findByText("stale-degraded")).toBeVisible();
|
||||
expect(
|
||||
await screen.findByText("기존 정보를 표시하고 있습니다."),
|
||||
).toBeVisible();
|
||||
expect(screen.getByText("Existing")).toBeVisible();
|
||||
await user.click(screen.getByRole("button", { name: "다시 시도" }));
|
||||
expect(await screen.findByText("Recovered")).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user