Add focus test and new baselines

This commit is contained in:
Bernardo Cardoso
2024-04-08 16:49:13 +01:00
parent daa8742df4
commit 9238854966
4 changed files with 20 additions and 0 deletions

View File

@ -41,3 +41,23 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
});
});
});
configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
/**
* This behavior only applies to Ionic Theme.
*/
test.describe(title('chip: focus state'), () => {
test('should render focus state', async ({ page }) => {
await page.setContent(
`<ion-chip class="ion-focused">
<ion-label>Focused</ion-label>
</ion-chip>`,
config
);
const chip = page.locator('ion-chip');
await expect(chip).toHaveScreenshot(screenshot(`chip-focused`));
});
});
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB