File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,6 +135,17 @@ describe('menu-bar', () => {
135135 await oneEvent ( element . _subMenu . $ . overlay , 'vaadin-overlay-open' ) ;
136136 await visualDiff ( document . body , `${ dir } -small` ) ;
137137 } ) ;
138+
139+ it ( 'end-aligned' , async ( ) => {
140+ element . setAttribute ( 'theme' , 'end-aligned' ) ;
141+ await visualDiff ( document . body , `${ dir } -end-aligned` ) ;
142+ } ) ;
143+
144+ it ( 'end-aligned overflow button' , async ( ) => {
145+ element . style . width = '100px' ;
146+ element . setAttribute ( 'theme' , 'end-aligned' ) ;
147+ await visualDiff ( document . body , `${ dir } -end-aligned-overflow-button` ) ;
148+ } ) ;
138149 } ) ;
139150 } ) ;
140151 } ) ;
Original file line number Diff line number Diff line change @@ -120,6 +120,27 @@ describe('menu-bar', () => {
120120 await oneEvent ( element . _subMenu . $ . overlay , 'vaadin-overlay-open' ) ;
121121 await visualDiff ( document . body , `${ dir } -text` ) ;
122122 } ) ;
123+
124+ it ( 'end-aligned' , async ( ) => {
125+ element . setAttribute ( 'theme' , 'end-aligned' ) ;
126+ await visualDiff ( document . body , `${ dir } -end-aligned` ) ;
127+ } ) ;
128+
129+ it ( 'end-aligned overflow button' , async ( ) => {
130+ element . style . width = '100px' ;
131+ element . setAttribute ( 'theme' , 'end-aligned' ) ;
132+ await visualDiff ( document . body , `${ dir } -end-aligned-overflow-button` ) ;
133+ } ) ;
134+
135+ it ( 'end-aligned outlined' , async ( ) => {
136+ element . setAttribute ( 'theme' , 'outlined end-aligned' ) ;
137+ await visualDiff ( document . body , `${ dir } -end-aligned-outlined` ) ;
138+ } ) ;
139+
140+ it ( 'end-aligned contained' , async ( ) => {
141+ element . setAttribute ( 'theme' , 'contained end-aligned' ) ;
142+ await visualDiff ( document . body , `${ dir } -end-aligned-contained` ) ;
143+ } ) ;
123144 } ) ;
124145 } ) ;
125146 } ) ;
You can’t perform that action at this time.
0 commit comments