Skip to content

Commit 3182879

Browse files
committed
make test run only for ionic/md
1 parent d1bcb6a commit 3182879

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

core/src/components/textarea/test/states/textarea.e2e.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,25 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
2626
const textarea = page.locator('ion-textarea');
2727
await expect(textarea).toHaveScreenshot(screenshot(`textarea-disabled`));
2828
});
29+
});
30+
});
2931

30-
test.describe(title('focused'), () => {
31-
test('should render focused textarea correctly', async ({ page }) => {
32-
await page.setContent(
33-
`
34-
<div class="container ion-padding">
35-
<ion-textarea label="Email" value="[email protected]" class="has-focus"></ion-textarea>
36-
</div>
37-
`,
32+
configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
33+
test.describe(title('focused'), () => {
34+
test('should render focused textarea correctly', async ({ page }) => {
35+
await page.setContent(
36+
`
37+
<div class="container ion-padding">
38+
<ion-textarea label="Email" value="[email protected]" class="has-focus"></ion-textarea>
39+
</div>
40+
`,
3841

39-
40-
config
41-
);
42+
43+
config
44+
);
4245

43-
const container = page.locator('.container');
44-
await expect(container).toHaveScreenshot(screenshot(`textarea-focused`));
45-
});
46+
const container = page.locator('.container');
47+
await expect(container).toHaveScreenshot(screenshot(`textarea-focused`));
4648
});
4749
});
4850
});

0 commit comments

Comments
 (0)