diff --git a/devfront/src/locales/en.toml b/devfront/src/locales/en.toml index e9e51705..811f7b26 100644 --- a/devfront/src/locales/en.toml +++ b/devfront/src/locales/en.toml @@ -1443,6 +1443,17 @@ cache_status = "Status" cache_uri = "JWKS URI" revoke_cache = "Revoke Cache" +[ui.dev.clients.relationships] +title = "Client Relationships" +add_title = "Add Relationship" +relation = "Relation" +user_id = "User ID" +user_id_placeholder = "kratos user id" +add = "Add" +list_title = "Assigned Relationships" +subject = "Subject" +subject_type = "Type" + [ui.dev.clients.help] docs_body = "Includes PKCE, client_secret_basic, redirect URI validation tips." docs_title = "Docs & Examples" diff --git a/devfront/src/locales/ko.toml b/devfront/src/locales/ko.toml index 00ec0f3d..27aae064 100644 --- a/devfront/src/locales/ko.toml +++ b/devfront/src/locales/ko.toml @@ -1442,6 +1442,17 @@ cache_status = "상태" cache_uri = "JWKS URI" revoke_cache = "캐시 삭제" +[ui.dev.clients.relationships] +title = "클라이언트 관계" +add_title = "관계 추가" +relation = "관계" +user_id = "사용자 ID" +user_id_placeholder = "kratos 사용자 id" +add = "추가" +list_title = "부여된 관계" +subject = "주체" +subject_type = "유형" + [ui.dev.clients.help] docs_body = "Includes PKCE, client_secret_basic, redirect URI validation tips." docs_title = "Docs & Examples" diff --git a/devfront/src/locales/template.toml b/devfront/src/locales/template.toml index d6252524..eb5792b0 100644 --- a/devfront/src/locales/template.toml +++ b/devfront/src/locales/template.toml @@ -1442,6 +1442,17 @@ cache_status = "" cache_uri = "" revoke_cache = "" +[ui.dev.clients.relationships] +title = "" +add_title = "" +relation = "" +user_id = "" +user_id_placeholder = "" +add = "" +list_title = "" +subject = "" +subject_type = "" + [ui.dev.clients.help] docs_body = "" docs_title = "" diff --git a/devfront/tests/devfront-relationships.spec.ts b/devfront/tests/devfront-relationships.spec.ts index b88fb3a3..e74bd33b 100644 --- a/devfront/tests/devfront-relationships.spec.ts +++ b/devfront/tests/devfront-relationships.spec.ts @@ -41,12 +41,18 @@ test.describe("DevFront relationships", () => { await installDevApiMock(page, state); await page.goto("/clients/client-rel/relationships"); - await expect(page.getByText("Client Relationships")).toBeVisible(); + await expect(page.getByText("클라이언트 관계")).toBeVisible(); + await expect( + page.getByRole("heading", { name: "관계 추가" }), + ).toBeVisible(); + await expect( + page.getByRole("heading", { name: "부여된 관계" }), + ).toBeVisible(); await expect(page.getByText("User:user-1")).toBeVisible(); - await page.getByLabel(/Relation/i).selectOption("secret_rotator"); - await page.getByLabel(/User ID/i).fill("user-2"); - await page.getByRole("button", { name: /^Add$/i }).click(); + await page.getByLabel(/^관계$/).selectOption("secret_rotator"); + await page.getByLabel(/^사용자 ID$/).fill("user-2"); + await page.getByRole("button", { name: /^추가$/ }).click(); await expect(page.getByText("User:user-2")).toBeVisible(); await expect.poll(() => state.relations["client-rel"]?.length ?? 0).toBe(2);