Skip to content

Commit 908d3a7

Browse files
chore(fieldgroup): cleans up test file
- we don't really need to change the label text or help text between test cases, so some of the test-specific changes were removed - add help icon test case
1 parent b5b14ae commit 908d3a7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

components/contextualhelp/stories/contextualhelp.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ export const ContextualHelpGroup = Variants({
2222
url: "#",
2323
},
2424
},
25+
{
26+
testHeading: "Help",
27+
iconName: "Help",
28+
customStyles: {
29+
"inline-size": "275px",
30+
"margin-bottom": "170px",
31+
},
32+
},
2533
],
2634
});

components/fieldgroup/stories/fieldgroup.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ export const FieldGroupSet = Variants({
1919
testHeading: "Horizontal checkboxes",
2020
layout: "horizontal",
2121
inputType: "checkbox",
22-
helpText: "Make a selection.",
2322
},
2423
{
2524
testHeading: "Radios label position: side",
26-
label: "Pick one:",
2725
labelPosition: "side",
2826
},
2927
{
@@ -33,14 +31,12 @@ export const FieldGroupSet = Variants({
3331
},
3432
{
3533
testHeading: "Horizontal radios label position: side",
36-
label: "Pick one:",
3734
labelPosition: "side",
3835
layout: "horizontal",
3936
inputType: "radio",
4037
},
4138
{
4239
testHeading: "Horizontal checkboxes label position: side",
43-
label: "Pick one:",
4440
labelPosition: "side",
4541
layout: "horizontal",
4642
inputType: "checkbox",

0 commit comments

Comments
 (0)