File tree 2 files changed +22
-1
lines changed
packages/component-library/src/cms/section/stories
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ export default defineConfig<EyesFixture>({
36
36
} ,
37
37
sendDom : true ,
38
38
failTestsOnDiff : 'afterEach' ,
39
- branchName : 'staging' ,
40
39
// Additional configuration options...
41
40
} ,
42
41
} ,
Original file line number Diff line number Diff line change @@ -68,6 +68,28 @@ export const SectionWithBackgroundColor: Story = {
68
68
} ,
69
69
} ;
70
70
71
+ export const SectionWithBackgroundColorT : Story = {
72
+ args : {
73
+ background : sectionBackground . secondary ,
74
+ padding : 'l' ,
75
+ children : (
76
+ < >
77
+ < Heading2 > This is a section with a background color!</ Heading2 >
78
+ < BodyOneText > I'm just a sentence.</ BodyOneText >
79
+ </ >
80
+ ) ,
81
+ } ,
82
+ play : async ( { canvasElement} : { canvasElement : HTMLElement } ) => {
83
+ const canvas = within ( canvasElement ) ;
84
+ const heading = canvas . getByText (
85
+ 'This is a section with a background color!' ,
86
+ ) ;
87
+
88
+ // check if children content is in the section
89
+ await expect ( heading ) . toBeInTheDocument ( ) ;
90
+ } ,
91
+ } ;
92
+
71
93
export const SectionWithBackgroundPattern : Story = {
72
94
args : {
73
95
background : sectionBackground . patternPrimary ,
You can’t perform that action at this time.
0 commit comments