From 3adb9212d44850752a9e6799bbfa277039a4d507 Mon Sep 17 00:00:00 2001 From: Srividya Ramaswamy Date: Mon, 26 Oct 2026 18:09:32 -0700 Subject: [PATCH 1/6] test(card): cover SPEC anatomy, overlay ownership and native structure Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1 --- .changeset/ready-taxis-start.md | 5 ++ .../src/components/card/card.stories.tsx | 50 +++++++++++++++-- .../src/components/card/card.test.tsx | 56 +++++++++++++++++++ .../agentic/components/tsconfig.stories.json | 1 + 4 files changed, 107 insertions(+), 5 deletions(-) create mode 100644 .changeset/ready-taxis-start.md diff --git a/.changeset/ready-taxis-start.md b/.changeset/ready-taxis-start.md new file mode 100644 index 0000000000..064435dc68 --- /dev/null +++ b/.changeset/ready-taxis-start.md @@ -0,0 +1,5 @@ +--- + +--- + + diff --git a/packages/agentic/components/src/components/card/card.stories.tsx b/packages/agentic/components/src/components/card/card.stories.tsx index b8ddb768b9..186f333672 100644 --- a/packages/agentic/components/src/components/card/card.stories.tsx +++ b/packages/agentic/components/src/components/card/card.stories.tsx @@ -4,6 +4,7 @@ import type { ReactNode } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import type { Meta, StoryObj } from '@storybook/react-native'; +import type { WdioStory } from '@fluentui-react-native/storybook-desktop/testing'; import { Button } from '../button/button'; import { Card } from './card'; @@ -146,10 +147,49 @@ const meta: Meta = { export default meta; -type Story = StoryObj; +type Story = WdioStory>; export const Default: Story = {}; +export const NativeStructure: Story = { + render: () => ( + Report }} + content={{ accessible: true, accessibilityLabel: 'Report summary', testID: 'card-spec-content', children: Summary }} + content02={{ accessible: true, accessibilityLabel: 'Report details', testID: 'card-spec-details', children: Details }} + footer={{ children: