We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a7f3b8 commit 6fc8e5aCopy full SHA for 6fc8e5a
code/core/src/component-testing/components/test-fn.stories.tsx
@@ -175,3 +175,18 @@ TestNames.test(
175
'should display an error when login is attempted with an unverified email address',
176
() => {}
177
);
178
+
179
+export const TestEach = meta.story();
180
181
+TestEach.each(
182
+ 'Test Each With %s',
183
+ [['One'], ['Two']],
184
+ (num) => ({
185
+ args: {
186
+ children: num,
187
+ },
188
+ }),
189
+ ({ canvas }, num) => {
190
+ expect(canvas.getByText(num)).toBeInTheDocument();
191
+ }
192
+);
0 commit comments