@@ -149,6 +149,53 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
149149 await expect ( container ) . toHaveScreenshot ( screenshot ( `select-solid-custom-highlight` ) ) ;
150150 } ) ;
151151 } ) ;
152+ } ) ;
153+
154+ test . describe ( title ( 'select: expanded highlight' ) , ( ) => {
155+ test . describe ( 'select: no fill' , ( ) => {
156+ test ( 'should render bottom highlight' , async ( { page } ) => {
157+ await page . setContent (
158+ `
159+ <ion-select label="Label" class="select-expanded"></ion-select>
160+ ` ,
161+ config
162+ ) ;
163+
164+ const select = page . locator ( 'ion-select' ) ;
165+ await expect ( select ) . toHaveScreenshot ( screenshot ( `select-no-fill-highlight` ) ) ;
166+ } ) ;
167+ } ) ;
168+ test . describe ( 'select: solid' , ( ) => {
169+ test ( 'should render bottom highlight' , async ( { page } ) => {
170+ await page . setContent (
171+ `
172+ <ion-select fill="solid" label="Label" class="select-expanded"></ion-select>
173+ ` ,
174+ config
175+ ) ;
176+
177+ const select = page . locator ( 'ion-select' ) ;
178+ await expect ( select ) . toHaveScreenshot ( screenshot ( `select-solid-highlight` ) ) ;
179+ } ) ;
180+ } ) ;
181+ test . describe ( 'select: outline' , ( ) => {
182+ test ( 'should render bottom highlight' , async ( { page } ) => {
183+ await page . setContent (
184+ `
185+ <ion-select fill="outline" label="Label" class="select-expanded"></ion-select>
186+ ` ,
187+ config
188+ ) ;
189+
190+ const select = page . locator ( 'ion-select' ) ;
191+ await expect ( select ) . toHaveScreenshot ( screenshot ( `select-outline-highlight` ) ) ;
192+ } ) ;
193+ } ) ;
194+ } ) ;
195+ } ) ;
196+
197+ configs ( { modes : [ 'md' , 'ionic-md' ] , directions : [ 'ltr' ] } ) . forEach ( ( { title, screenshot, config } ) => {
198+ test . describe ( title ( 'select: highlights' ) , ( ) => {
152199 test . describe ( 'select: outline' , ( ) => {
153200 test ( 'should render valid state correctly' , async ( { page } ) => {
154201 await page . setContent (
@@ -223,46 +270,4 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
223270 } ) ;
224271 } ) ;
225272 } ) ;
226-
227- test . describe ( title ( 'select: expanded highlight' ) , ( ) => {
228- test . describe ( 'select: no fill' , ( ) => {
229- test ( 'should render bottom highlight' , async ( { page } ) => {
230- await page . setContent (
231- `
232- <ion-select label="Label" class="select-expanded"></ion-select>
233- ` ,
234- config
235- ) ;
236-
237- const select = page . locator ( 'ion-select' ) ;
238- await expect ( select ) . toHaveScreenshot ( screenshot ( `select-no-fill-highlight` ) ) ;
239- } ) ;
240- } ) ;
241- test . describe ( 'select: solid' , ( ) => {
242- test ( 'should render bottom highlight' , async ( { page } ) => {
243- await page . setContent (
244- `
245- <ion-select fill="solid" label="Label" class="select-expanded"></ion-select>
246- ` ,
247- config
248- ) ;
249-
250- const select = page . locator ( 'ion-select' ) ;
251- await expect ( select ) . toHaveScreenshot ( screenshot ( `select-solid-highlight` ) ) ;
252- } ) ;
253- } ) ;
254- test . describe ( 'select: outline' , ( ) => {
255- test ( 'should render bottom highlight' , async ( { page } ) => {
256- await page . setContent (
257- `
258- <ion-select fill="outline" label="Label" class="select-expanded"></ion-select>
259- ` ,
260- config
261- ) ;
262-
263- const select = page . locator ( 'ion-select' ) ;
264- await expect ( select ) . toHaveScreenshot ( screenshot ( `select-outline-highlight` ) ) ;
265- } ) ;
266- } ) ;
267- } ) ;
268273} ) ;
0 commit comments