| 
1 | 1 | import { expect } from '@playwright/test';  | 
2 | 2 | import { configs, test } from '@utils/test/playwright';  | 
3 | 3 | 
 
  | 
4 |  | -configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {  | 
 | 4 | +configs({ modes: ['md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {  | 
5 | 5 |   test.describe(title('input: color'), () => {  | 
6 |  | -    test.describe('input: fill none', () => {  | 
 | 6 | +    test.describe('input: fill outline', () => {  | 
7 | 7 |       test('should set label and highlight color on expand', async ({ page }) => {  | 
8 | 8 |         await page.setContent(  | 
9 | 9 |           `  | 
10 |  | -          <ion-select label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">  | 
 | 10 | +          <ion-select fill="outline" label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">  | 
11 | 11 |             <ion-select-option value="apple">Apple</ion-select-option>  | 
12 | 12 |           </ion-select>  | 
13 | 13 |         `,  | 
14 | 14 |           config  | 
15 | 15 |         );  | 
16 | 16 | 
 
  | 
17 | 17 |         const select = page.locator('ion-select');  | 
18 |  | -        await expect(select).toHaveScreenshot(screenshot(`select-no-fill-color`));  | 
 | 18 | +        await expect(select).toHaveScreenshot(screenshot(`select-outline-color`));  | 
19 | 19 |       });  | 
20 | 20 |     });  | 
21 |  | -    test.describe('input: fill solid', () => {  | 
 | 21 | +  });  | 
 | 22 | +});  | 
 | 23 | + | 
 | 24 | +configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {  | 
 | 25 | +  test.describe(title('input: color'), () => {  | 
 | 26 | +    test.describe('input: fill none', () => {  | 
22 | 27 |       test('should set label and highlight color on expand', async ({ page }) => {  | 
23 | 28 |         await page.setContent(  | 
24 | 29 |           `  | 
25 |  | -          <ion-select fill="solid" label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">  | 
 | 30 | +          <ion-select label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">  | 
26 | 31 |             <ion-select-option value="apple">Apple</ion-select-option>  | 
27 | 32 |           </ion-select>  | 
28 | 33 |         `,  | 
29 | 34 |           config  | 
30 | 35 |         );  | 
31 | 36 | 
 
  | 
32 | 37 |         const select = page.locator('ion-select');  | 
33 |  | -        await expect(select).toHaveScreenshot(screenshot(`select-solid-color`));  | 
 | 38 | +        await expect(select).toHaveScreenshot(screenshot(`select-no-fill-color`));  | 
34 | 39 |       });  | 
35 | 40 |     });  | 
36 |  | -    test.describe('input: fill outline', () => {  | 
 | 41 | +    test.describe('input: fill solid', () => {  | 
37 | 42 |       test('should set label and highlight color on expand', async ({ page }) => {  | 
38 | 43 |         await page.setContent(  | 
39 | 44 |           `  | 
40 |  | -          <ion-select fill="outline" label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">  | 
 | 45 | +          <ion-select fill="solid" label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">  | 
41 | 46 |             <ion-select-option value="apple">Apple</ion-select-option>  | 
42 | 47 |           </ion-select>  | 
43 | 48 |         `,  | 
44 | 49 |           config  | 
45 | 50 |         );  | 
46 | 51 | 
 
  | 
47 | 52 |         const select = page.locator('ion-select');  | 
48 |  | -        await expect(select).toHaveScreenshot(screenshot(`select-outline-color`));  | 
 | 53 | +        await expect(select).toHaveScreenshot(screenshot(`select-solid-color`));  | 
49 | 54 |       });  | 
50 | 55 |     });  | 
51 | 56 |   });  | 
 | 
0 commit comments