fix(ui): default custom PII entities to MASK and classify test tier

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-15 22:38:42 +00:00
parent f147449374
commit de2cac7b67
2 changed files with 3 additions and 3 deletions

View file

@ -33,13 +33,13 @@ describe("PiiConfiguration", () => {
expect(screen.getByText("NO FODSELSNUMMER")).toBeInTheDocument();
});
it("adds a normalized custom entity with the first action", () => {
it("adds a normalized custom entity with MASK", () => {
const onEntitySelect = vi.fn();
const onActionSelect = vi.fn();
render(
<PiiConfiguration
entities={["PERSON"]}
actions={["MASK", "BLOCK"]}
actions={["BLOCK", "MASK"]}
selectedEntities={[]}
selectedActions={{}}
onEntitySelect={onEntitySelect}

View file

@ -78,7 +78,7 @@ const PiiConfiguration: React.FC<PiiConfigurationProps> = ({
}
onEntitySelect(normalizedEntityName);
onActionSelect(normalizedEntityName, actions[0] ?? "MASK");
onActionSelect(normalizedEntityName, "MASK");
};
return (