mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
Changed focus test and baselines
This commit is contained in:
@ -49,13 +49,15 @@ configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screensh
|
|||||||
test.describe(title('chip: focus state'), () => {
|
test.describe(title('chip: focus state'), () => {
|
||||||
test('should render focus state', async ({ page }) => {
|
test('should render focus state', async ({ page }) => {
|
||||||
await page.setContent(
|
await page.setContent(
|
||||||
`<ion-chip class="ion-focused ion-margin">
|
`<ion-content class="ion-padding">
|
||||||
<ion-label>Focused</ion-label>
|
<ion-chip class="ion-focused">
|
||||||
</ion-chip>`,
|
<ion-label>Focused</ion-label>
|
||||||
|
</ion-chip>
|
||||||
|
</ion-content>`,
|
||||||
config
|
config
|
||||||
);
|
);
|
||||||
|
|
||||||
const chip = page.locator('ion-chip');
|
const chip = page.locator('ion-content');
|
||||||
|
|
||||||
await expect(chip).toHaveScreenshot(screenshot(`chip-focused`));
|
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 |
Reference in New Issue
Block a user