Skip to content

Commit

Permalink
test(field-label): fix field label test for invalid textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBerliner committed Jan 13, 2025
1 parent 507c5eb commit a216e08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ regressionTest(
'invalid color with invalid textarea field',
async ({ mount, page }) => {
await mount(`
<ix-textarea label="invalid label text" required>valid field</ix-textarea>
<ix-textarea label="invalid label text" required>invalid field</ix-textarea>
`);

const fieldElement = page.locator('ix-textarea');
const labelElement = page.locator('ix-field-label');

await expect(fieldElement).not.toHaveClass(/ix-invalid--required/);
await expect(fieldElement).toHaveClass(/ix-invalid--required/);

await expect(labelElement.locator('ix-typography')).toHaveAttribute(
'style',
Expand Down

0 comments on commit a216e08

Please sign in to comment.