test(select): fix duplicated tests

This commit is contained in:
Brandy Smith
2025-06-05 12:50:44 -04:00
parent 5d719ba6b0
commit 17dc854eae
2 changed files with 1 additions and 58 deletions

View File

@@ -7,7 +7,7 @@ configs({ modes: ['md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, sc
test('should set label and highlight color on expand', async ({ page }) => {
await page.setContent(
`
<ion-select fill="outline" label="Label" class="select-expanded" value="apple" class="ion-focused" color="danger">
<ion-select fill="outline" label="Label" class="select-expanded" value="apple" class="has-focus" color="danger">
<ion-select-option value="apple">Apple</ion-select-option>
</ion-select>
`,
@@ -53,20 +53,5 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
await expect(select).toHaveScreenshot(screenshot(`select-solid-color`));
});
});
test.describe('input: fill outline', () => {
test('should set label and highlight color on expand', async ({ page }) => {
await page.setContent(
`
<ion-select fill="outline" label="Label" class="select-expanded" value="apple" class="has-focus" color="danger">
<ion-select-option value="apple">Apple</ion-select-option>
</ion-select>
`,
config
);
const select = page.locator('ion-select');
await expect(select).toHaveScreenshot(screenshot(`select-outline-color`));
});
});
});
});

View File

@@ -268,48 +268,6 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
});
});
});
test.describe(title('select: expanded highlight'), () => {
test.describe('select: no fill', () => {
test('should render bottom highlight', async ({ page }) => {
await page.setContent(
`
<ion-select label="Label" class="select-expanded"></ion-select>
`,
config
);
const select = page.locator('ion-select');
await expect(select).toHaveScreenshot(screenshot(`select-no-fill-highlight`));
});
});
test.describe('select: solid', () => {
test('should render bottom highlight', async ({ page }) => {
await page.setContent(
`
<ion-select fill="solid" label="Label" class="select-expanded"></ion-select>
`,
config
);
const select = page.locator('ion-select');
await expect(select).toHaveScreenshot(screenshot(`select-solid-highlight`));
});
});
test.describe('select: outline', () => {
test('should render bottom highlight', async ({ page }) => {
await page.setContent(
`
<ion-select fill="outline" label="Label" class="select-expanded"></ion-select>
`,
config
);
const select = page.locator('ion-select');
await expect(select).toHaveScreenshot(screenshot(`select-outline-highlight`));
});
});
});
});
configs({ modes: ['md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {