diff --git a/devfront/tests/devfront-client-claims-cache.spec.ts b/devfront/tests/devfront-client-claims-cache.spec.ts index 45c345dc..4a21e3c3 100644 --- a/devfront/tests/devfront-client-claims-cache.spec.ts +++ b/devfront/tests/devfront-client-claims-cache.spec.ts @@ -357,22 +357,15 @@ test.describe("DevFront RP claim cache", () => { const defaultValueInput = page .getByPlaceholder(/기본값을 입력하세요|Enter the default value/i) .first(); + await expect(defaultValueInput).toHaveAttribute("inputmode", "numeric"); + await expect(defaultValueInput).toHaveAttribute("pattern", "-?[0-9]*"); await defaultValueInput.fill("3.14"); - await expect(defaultValueInput).toHaveAttribute("aria-invalid", "true"); - await page.getByRole("button", { name: /^저장$|^Save$/i }).click(); - await expect - .poll( - () => - ( - state.clients[0]?.metadata?.id_token_claims as - | Array<{ valueType?: string; value?: string }> - | undefined - )?.[0], - ) - .toMatchObject({ - value: "3.14", - valueType: "float", - }); + await expect( + page.getByText(/Claim 기본값이 타입과 맞지 않습니다|does not match/i), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: /^저장$|^Save$/i }), + ).toBeDisabled(); }); });