Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(demo-playwright): tests for field-error #6133

Merged
merged 12 commits into from
Nov 30, 2023
Merged

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import {tuiGoto} from '@demo-playwright/utils';
import {expect, test} from '@playwright/test';

const {describe} = test;

describe(`TuiFieldError`, () => {
test(`Errors of invalid control are shown correctly`, async ({page}) => {
await tuiGoto(page, `/pipes/field-error`);

const errorPipeInput = page
.locator(`tui-field-error-pipe-example-1 input`)
.first();

await errorPipeInput.focus();

await page.waitForTimeout(50);

await errorPipeInput.blur();

const example = page
.locator(`tui-doc-example [automation-id="tui-doc-example"]`)
.first();

await expect(example).toHaveScreenshot(`shows-error-under-field.png`, {
animations: `allow`,
});
});
});
Loading