@@ -62,25 +62,45 @@ test.describe('Text Content', () => {
6262
6363 test . describe ( 'Label' , ( ) => {
6464 test ( 'default' , async ( { mount, expectScreenshot} ) => {
65- await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . defaultLabel } /> ) ;
65+ const component = await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . defaultLabel } /> ) ;
66+
67+ await component
68+ . locator ( '.g-label__addon.g-label__addon_side_start.g-label__addon_type_icon' )
69+ . waitFor ( ) ;
6670
6771 await expectScreenshot ( ) ;
6872 } ) ;
6973
7074 test ( 'layout row' , async ( { mount, expectScreenshot} ) => {
71- await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRow } /> ) ;
75+ const component = await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRow } /> ) ;
76+
77+ await component
78+ . locator ( '.g-label__addon.g-label__addon_side_start.g-label__addon_type_icon' )
79+ . waitFor ( ) ;
7280
7381 await expectScreenshot ( ) ;
7482 } ) ;
7583
7684 test ( 'layout row verbose' , async ( { mount, expectScreenshot} ) => {
77- await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRowVerbose } /> ) ;
85+ const component = await mount (
86+ < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRowVerbose } /> ,
87+ ) ;
88+
89+ await component
90+ . locator ( '.g-label__addon.g-label__addon_side_start.g-label__addon_type_icon' )
91+ . waitFor ( ) ;
7892
7993 await expectScreenshot ( ) ;
8094 } ) ;
8195
8296 test ( 'layout transparent' , async ( { mount, expectScreenshot} ) => {
83- await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutTransparent } /> ) ;
97+ const component = await mount (
98+ < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutTransparent } /> ,
99+ ) ;
100+
101+ await component
102+ . locator ( '.g-label__addon.g-label__addon_side_start.g-label__addon_type_icon' )
103+ . waitFor ( ) ;
84104
85105 await expectScreenshot ( ) ;
86106 } ) ;
@@ -90,8 +110,15 @@ test.describe('Text Content', () => {
90110
91111 await expectScreenshot ( ) ;
92112 } ) ;
113+
93114 test ( 'default value' , async ( { mount, expectScreenshot} ) => {
94- await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelDefaultValue } /> ) ;
115+ const component = await mount (
116+ < DynamicForm spec = { TEXT_CONTENT_SPEC . labelDefaultValue } /> ,
117+ ) ;
118+
119+ await component
120+ . locator ( '.g-label__addon.g-label__addon_side_start.g-label__addon_type_icon' )
121+ . waitFor ( ) ;
95122
96123 await expectScreenshot ( ) ;
97124 } ) ;
0 commit comments