Skip to content

Commit 65ee1c8

Browse files
committed
add new textarea focus test
1 parent 6f11bde commit 65ee1c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,19 @@ 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+
test.describe(title('focused'), () => {
31+
test('should render focused textarea correctly', async ({ page }) => {
32+
await page.setContent(
33+
`
34+
<ion-textarea label="Email" value="[email protected]" class="has-focus"></ion-textarea>
35+
`,
36+
config
37+
);
38+
39+
const container = page.locator('.container');
40+
await expect(container).toHaveScreenshot(screenshot(`textarea-focused`));
41+
});
42+
});
2943
});
3044
});

0 commit comments

Comments
 (0)