@@ -78,33 +78,33 @@ test.describe( 'Global Settings', () => {
7878 expect ( _count ) . toBeLessThan ( count )
7979 } )
8080
81- test . skip ( 'Global Typography Styles should be applied when adding a heading' , async ( {
81+ test ( 'Global Typography Styles should be applied when adding a heading' , async ( {
8282 page,
8383 editor,
8484 } ) => {
8585 await page . getByLabel ( 'Stackable Settings' ) . click ( )
8686 await page . getByRole ( 'button' , { name : 'Global Typography' } ) . click ( )
8787
88- // Set Global Typography Styles of Heading 2 to have a font-size of 32
88+ // Set Global Typography Styles of Heading 2 to have a text-transform uppercase
8989 await page . locator ( '.ugb-global-settings-typography-control' ) . nth ( 1 ) . locator ( '.components-base-control__field > .ugb-button-icon-control__wrapper > .components-button' ) . click ( )
90- await page . locator ( '.stk-popover .components-base-control:nth-of-type(2 )' , { hasText : / S i z e / } ) . getByRole ( 'textbox ' ) . fill ( '32 ' )
90+ await page . locator ( '.stk-popover .components-base-control:nth-of-type(4 )' , { hasText : / T r a n s f o r m / } ) . getByRole ( 'listbox ' ) . selectOption ( 'uppercase ' )
9191 await page . locator ( '.ugb-global-settings-typography-control' ) . nth ( 1 ) . locator ( '.components-base-control__field > .ugb-button-icon-control__wrapper > .components-button' ) . click ( )
9292
93- // Verify if the Heading 2 in Global Typography Styles has correct font size
94- await expect ( page . getByRole ( 'heading' , { name : 'Heading 2' } ) ) . toHaveCSS ( 'font-size ' , '32px ' )
93+ // Verify if the Heading 2 in Global Typography Styles has correct text-transform
94+ await expect ( page . getByRole ( 'heading' , { name : 'Heading 2' } ) ) . toHaveCSS ( 'text-transform ' , 'uppercase ' )
9595
9696 // Open Block Settings
9797 await page . getByLabel ( 'Settings' , { exact : true } ) . click ( )
9898
99- // Check if the added Stackable Heading Block has a font-size of 32
99+ // Check if the added Stackable Heading Block has a text-transform uppercase
100100 editor . insertBlock ( {
101101 name : 'stackable/heading' ,
102102 attributes : {
103103 text : 'test' ,
104104 } ,
105105 } )
106106
107- await expect ( editor . canvas . locator ( '[data-type="stackable/heading"] > .stk-block-heading > h2[role="textbox"]' ) ) . toHaveCSS ( 'font-size ' , '32px ' )
107+ await expect ( editor . canvas . locator ( '[data-type="stackable/heading"] > .stk-block-heading > h2[role="textbox"]' ) ) . toHaveCSS ( 'text-transform ' , 'uppercase ' )
108108
109109 // Reset Global Typography Styles
110110 await page . getByLabel ( 'Stackable Settings' ) . click ( )
0 commit comments