Skip to content

Commit 9b5e218

Browse files
- add visual test for textarea-readonly.ion-invalid
1 parent fb563a7 commit 9b5e218

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,31 @@ configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screensh
151151
await expect(container).toHaveScreenshot(screenshot(`textarea-readonly-no-fill`));
152152
});
153153
});
154+
155+
test.describe(title('solid'), () => {
156+
test('should render readonly invalid textarea correctly', async ({ page }) => {
157+
await page.setContent(
158+
`
159+
<div class="container">
160+
<ion-textarea
161+
label="Email"
162+
label-placement="stacked"
163+
164+
helper-text="Enter an email"
165+
counter="true"
166+
maxlength="20"
167+
class="ion-touched ion-invalid"
168+
readonly="true"
169+
></ion-textarea>
170+
</div>
171+
`,
172+
config
173+
);
174+
175+
const container = page.locator('.container');
176+
await expect(container).toHaveScreenshot(screenshot(`textarea-readonly-solid-invalid`));
177+
});
178+
});
154179
});
155180
});
156181
});

0 commit comments

Comments
 (0)