@@ -62,53 +62,25 @@ test.describe('Text Content', () => {
6262
6363 test . describe ( 'Label' , ( ) => {
6464 test ( 'default' , async ( { mount, expectScreenshot} ) => {
65- const component = await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . defaultLabel } /> ) ;
66-
67- await component
68- . locator (
69- '.g-text.g-text_variant_body-1.g-color-text.g-color-text_color_warning.df-text-content__icon' ,
70- )
71- . waitFor ( ) ;
65+ await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . defaultLabel } /> ) ;
7266
7367 await expectScreenshot ( ) ;
7468 } ) ;
7569
7670 test ( 'layout row' , async ( { mount, expectScreenshot} ) => {
77- const component = await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRow } /> ) ;
78-
79- await component
80- . locator (
81- '.g-text.g-text_variant_body-1.g-color-text.g-color-text_color_warning.df-text-content__icon' ,
82- )
83- . waitFor ( ) ;
71+ await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRow } /> ) ;
8472
8573 await expectScreenshot ( ) ;
8674 } ) ;
8775
8876 test ( 'layout row verbose' , async ( { mount, expectScreenshot} ) => {
89- const component = await mount (
90- < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRowVerbose } /> ,
91- ) ;
92-
93- await component
94- . locator (
95- '.g-text.g-text_variant_body-1.g-color-text.g-color-text_color_warning.df-text-content__icon' ,
96- )
97- . waitFor ( ) ;
77+ await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutRowVerbose } /> ) ;
9878
9979 await expectScreenshot ( ) ;
10080 } ) ;
10181
10282 test ( 'layout transparent' , async ( { mount, expectScreenshot} ) => {
103- const component = await mount (
104- < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutTransparent } /> ,
105- ) ;
106-
107- await component
108- . locator (
109- '.g-text.g-text_variant_body-1.g-color-text.g-color-text_color_warning.df-text-content__icon' ,
110- )
111- . waitFor ( ) ;
83+ await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelLayoutTransparent } /> ) ;
11284
11385 await expectScreenshot ( ) ;
11486 } ) ;
@@ -118,17 +90,8 @@ test.describe('Text Content', () => {
11890
11991 await expectScreenshot ( ) ;
12092 } ) ;
121-
12293 test ( 'default value' , async ( { mount, expectScreenshot} ) => {
123- const component = await mount (
124- < DynamicForm spec = { TEXT_CONTENT_SPEC . labelDefaultValue } /> ,
125- ) ;
126-
127- await component
128- . locator (
129- '.g-text.g-text_variant_body-1.g-color-text.g-color-text_color_warning.df-text-content__icon' ,
130- )
131- . waitFor ( ) ;
94+ await mount ( < DynamicForm spec = { TEXT_CONTENT_SPEC . labelDefaultValue } /> ) ;
13295
13396 await expectScreenshot ( ) ;
13497 } ) ;
0 commit comments