From 47f2e894ac8293900673b52d52da29edac807a6a Mon Sep 17 00:00:00 2001 From: Nils Date: Fri, 24 Jan 2025 09:49:27 +0100 Subject: [PATCH] test(component-library): add visual tests for inherited email field --- .../mt-email-field.interactive.stories.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/component-library/src/components/form/mt-email-field/mt-email-field.interactive.stories.ts b/packages/component-library/src/components/form/mt-email-field/mt-email-field.interactive.stories.ts index 49a5a5326..ad3974700 100644 --- a/packages/component-library/src/components/form/mt-email-field/mt-email-field.interactive.stories.ts +++ b/packages/component-library/src/components/form/mt-email-field/mt-email-field.interactive.stories.ts @@ -103,3 +103,21 @@ export const TestShouldCopyValue: MtEmailFieldStory = { await userEvent.keyboard("{Enter}"); }, }; + +export const VisualTestLinkedInheritanec: MtEmailFieldStory = { + name: "Linked inheritance", + args: { + isInheritanceField: true, + isInherited: true, + modelValue: "test@shopware.com", + }, +}; + +export const VisualTestUnlinkedInheritance: MtEmailFieldStory = { + name: "Unlinked inheritance", + args: { + isInheritanceField: true, + isInherited: false, + modelValue: "test@shopware.com", + }, +};