@@ -50,11 +50,6 @@ describe('tabsheet', () => {
5050 await visualDiff ( div , 'no-border' ) ;
5151 } ) ;
5252
53- it ( 'no-padding' , async ( ) => {
54- element . setAttribute ( 'theme' , 'no-padding' ) ;
55- await visualDiff ( div , 'no-padding' ) ;
56- } ) ;
57-
5853 it ( 'overflow-top' , async ( ) => {
5954 element . style . setProperty ( 'height' , '100px' ) ;
6055 element . shadowRoot . querySelector ( '[part="content"]' ) . scrollBy ( 0 , 40 ) ;
@@ -78,6 +73,24 @@ describe('tabsheet', () => {
7873 await visualDiff ( div , 'loading' ) ;
7974 } ) ;
8075
76+ describe ( 'no-padding' , ( ) => {
77+ before ( ( ) => {
78+ const contentStyles = new CSSStyleSheet ( ) ;
79+ contentStyles . insertRule ( 'vaadin-tabsheet::part(content) { padding: 20px; }' ) ;
80+ document . adoptedStyleSheets = [ contentStyles ] ;
81+ } ) ;
82+
83+ after ( ( ) => {
84+ document . adoptedStyleSheets = [ ] ;
85+ } ) ;
86+
87+ it ( 'no-padding' , async ( ) => {
88+ element . setAttribute ( 'theme' , 'no-padding' ) ;
89+ await nextRender ( ) ;
90+ await visualDiff ( div , 'no-padding' ) ;
91+ } ) ;
92+ } ) ;
93+
8194 [ 'ltr' , 'rtl' ] . forEach ( ( dir ) => {
8295 describe ( dir , ( ) => {
8396 before ( ( ) => {
@@ -88,10 +101,8 @@ describe('tabsheet', () => {
88101 document . documentElement . removeAttribute ( 'dir' ) ;
89102 } ) ;
90103
91- describe ( `${ dir } ` , ( ) => {
92- it ( 'default' , async ( ) => {
93- await visualDiff ( div , `${ dir } -default` ) ;
94- } ) ;
104+ it ( 'default' , async ( ) => {
105+ await visualDiff ( div , `${ dir } -default` ) ;
95106 } ) ;
96107 } ) ;
97108 } ) ;
0 commit comments