mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Add focus test and new baselines
This commit is contained in:
@ -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.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user