Skip to content

Commit fd0cce2

Browse files
committed
test: update message format fixtures for enhanced test suite
- Update fixtures for all formats (HTML, Adaptive Cards, Block Kit, Markdown, Text) - Reflects enhanced base test suite with additional blocks: - CodeBlock with multi-line code samples - DividerBlock for visual separation - TableBlock with headers and multiple columns - ActionsBlock with dropdown and user select components - Additional inline blocks (MentionBlock, InlineCodeBlock) - All 198 message format tests passing
1 parent a033e7b commit fd0cce2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1053
-118
lines changed

tests/unit/messages/formats/adaptive_cards/fixtures/all_blocks_green.json

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@
2323
"text": "Normal text **Bold text** _Italic text_",
2424
"wrap": true
2525
},
26+
{
27+
"type": "Container",
28+
"style": "emphasis",
29+
"items": [
30+
{
31+
"type": "RichTextBlock",
32+
"inlines": [
33+
{
34+
"type": "TextRun",
35+
"text": "def hello_world():\n print('Hello, World!')",
36+
"fontType": "Monospace"
37+
}
38+
]
39+
}
40+
]
41+
}
42+
]
43+
},
44+
{
45+
"type": "Container",
46+
"separator": true,
47+
"items": [
2648
{
2749
"type": "TextBlock",
2850
"text": "- First bullet point",
@@ -51,6 +73,127 @@
5173
}
5274
]
5375
},
76+
{
77+
"type": "Table",
78+
"columns": [
79+
{
80+
"width": 1
81+
},
82+
{
83+
"width": 1
84+
},
85+
{
86+
"width": 1
87+
}
88+
],
89+
"rows": [
90+
{
91+
"type": "TableRow",
92+
"cells": [
93+
{
94+
"type": "TableCell",
95+
"items": [
96+
{
97+
"type": "TextBlock",
98+
"text": "Column 1",
99+
"wrap": true
100+
}
101+
]
102+
},
103+
{
104+
"type": "TableCell",
105+
"items": [
106+
{
107+
"type": "TextBlock",
108+
"text": "Column 2",
109+
"wrap": true
110+
}
111+
]
112+
},
113+
{
114+
"type": "TableCell",
115+
"items": [
116+
{
117+
"type": "TextBlock",
118+
"text": "Column 3",
119+
"wrap": true
120+
}
121+
]
122+
}
123+
]
124+
},
125+
{
126+
"type": "TableRow",
127+
"cells": [
128+
{
129+
"type": "TableCell",
130+
"items": [
131+
{
132+
"type": "TextBlock",
133+
"text": "Row 1 Col 1",
134+
"wrap": true
135+
}
136+
]
137+
},
138+
{
139+
"type": "TableCell",
140+
"items": [
141+
{
142+
"type": "TextBlock",
143+
"text": "Row 1 Col 2",
144+
"wrap": true
145+
}
146+
]
147+
},
148+
{
149+
"type": "TableCell",
150+
"items": [
151+
{
152+
"type": "TextBlock",
153+
"text": "Row 1 Col 3",
154+
"wrap": true
155+
}
156+
]
157+
}
158+
]
159+
},
160+
{
161+
"type": "TableRow",
162+
"cells": [
163+
{
164+
"type": "TableCell",
165+
"items": [
166+
{
167+
"type": "TextBlock",
168+
"text": "Row 2 Col 1",
169+
"wrap": true
170+
}
171+
]
172+
},
173+
{
174+
"type": "TableCell",
175+
"items": [
176+
{
177+
"type": "TextBlock",
178+
"text": "Row 2 Col 2",
179+
"wrap": true
180+
}
181+
]
182+
},
183+
{
184+
"type": "TableCell",
185+
"items": [
186+
{
187+
"type": "TextBlock",
188+
"text": "Row 2 Col 3",
189+
"wrap": true
190+
}
191+
]
192+
}
193+
]
194+
}
195+
]
196+
},
54197
{
55198
"type": "ActionSet",
56199
"actions": [

tests/unit/messages/formats/adaptive_cards/fixtures/all_blocks_no_color.json

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@
2323
"text": "Normal text **Bold text** _Italic text_",
2424
"wrap": true
2525
},
26+
{
27+
"type": "Container",
28+
"style": "emphasis",
29+
"items": [
30+
{
31+
"type": "RichTextBlock",
32+
"inlines": [
33+
{
34+
"type": "TextRun",
35+
"text": "def hello_world():\n print('Hello, World!')",
36+
"fontType": "Monospace"
37+
}
38+
]
39+
}
40+
]
41+
}
42+
]
43+
},
44+
{
45+
"type": "Container",
46+
"separator": true,
47+
"items": [
2648
{
2749
"type": "TextBlock",
2850
"text": "- First bullet point",
@@ -51,6 +73,127 @@
5173
}
5274
]
5375
},
76+
{
77+
"type": "Table",
78+
"columns": [
79+
{
80+
"width": 1
81+
},
82+
{
83+
"width": 1
84+
},
85+
{
86+
"width": 1
87+
}
88+
],
89+
"rows": [
90+
{
91+
"type": "TableRow",
92+
"cells": [
93+
{
94+
"type": "TableCell",
95+
"items": [
96+
{
97+
"type": "TextBlock",
98+
"text": "Column 1",
99+
"wrap": true
100+
}
101+
]
102+
},
103+
{
104+
"type": "TableCell",
105+
"items": [
106+
{
107+
"type": "TextBlock",
108+
"text": "Column 2",
109+
"wrap": true
110+
}
111+
]
112+
},
113+
{
114+
"type": "TableCell",
115+
"items": [
116+
{
117+
"type": "TextBlock",
118+
"text": "Column 3",
119+
"wrap": true
120+
}
121+
]
122+
}
123+
]
124+
},
125+
{
126+
"type": "TableRow",
127+
"cells": [
128+
{
129+
"type": "TableCell",
130+
"items": [
131+
{
132+
"type": "TextBlock",
133+
"text": "Row 1 Col 1",
134+
"wrap": true
135+
}
136+
]
137+
},
138+
{
139+
"type": "TableCell",
140+
"items": [
141+
{
142+
"type": "TextBlock",
143+
"text": "Row 1 Col 2",
144+
"wrap": true
145+
}
146+
]
147+
},
148+
{
149+
"type": "TableCell",
150+
"items": [
151+
{
152+
"type": "TextBlock",
153+
"text": "Row 1 Col 3",
154+
"wrap": true
155+
}
156+
]
157+
}
158+
]
159+
},
160+
{
161+
"type": "TableRow",
162+
"cells": [
163+
{
164+
"type": "TableCell",
165+
"items": [
166+
{
167+
"type": "TextBlock",
168+
"text": "Row 2 Col 1",
169+
"wrap": true
170+
}
171+
]
172+
},
173+
{
174+
"type": "TableCell",
175+
"items": [
176+
{
177+
"type": "TextBlock",
178+
"text": "Row 2 Col 2",
179+
"wrap": true
180+
}
181+
]
182+
},
183+
{
184+
"type": "TableCell",
185+
"items": [
186+
{
187+
"type": "TextBlock",
188+
"text": "Row 2 Col 3",
189+
"wrap": true
190+
}
191+
]
192+
}
193+
]
194+
}
195+
]
196+
},
54197
{
55198
"type": "ActionSet",
56199
"actions": [

0 commit comments

Comments
 (0)