diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/Examples.tsx index 3c0de733680..46bbbf75597 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/Examples.tsx +++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/Examples.tsx @@ -83,7 +83,10 @@ export const Disabled = () => { export const Error = () => { return ( - + { }) expect(screenshot).toMatchImageSnapshot() }) + + it('have to match with error', async () => { + const screenshot = await makeScreenshot({ + selector: '[data-visual-test="phone-number-error"]', + }) + expect(screenshot).toMatchImageSnapshot() + }) }) describe('PhoneNumber', () => { diff --git a/packages/dnb-eufemia/src/extensions/forms/Field/PhoneNumber/__tests__/__image_snapshots__/phonenumber-for-ui-have-to-match-with-error.snap.png b/packages/dnb-eufemia/src/extensions/forms/Field/PhoneNumber/__tests__/__image_snapshots__/phonenumber-for-ui-have-to-match-with-error.snap.png new file mode 100644 index 00000000000..0c1f7001922 Binary files /dev/null and b/packages/dnb-eufemia/src/extensions/forms/Field/PhoneNumber/__tests__/__image_snapshots__/phonenumber-for-ui-have-to-match-with-error.snap.png differ