Changed focus test and baselines

This commit is contained in:
Bernardo Cardoso
2024-04-09 16:38:35 +01:00
parent 859d0f7dda
commit 0e30825e51
4 changed files with 6 additions and 4 deletions

View File

@ -49,13 +49,15 @@ configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screensh
test.describe(title('chip: focus state'), () => {
test('should render focus state', async ({ page }) => {
await page.setContent(
`<ion-chip class="ion-focused ion-margin">
<ion-label>Focused</ion-label>
</ion-chip>`,
`<ion-content class="ion-padding">
<ion-chip class="ion-focused">
<ion-label>Focused</ion-label>
</ion-chip>
</ion-content>`,
config
);
const chip = page.locator('ion-chip');
const chip = page.locator('ion-content');
await expect(chip).toHaveScreenshot(screenshot(`chip-focused`));
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB