test: for tools - generators, text and verdicts, smoke

This commit is contained in:
2026-09-26 04:39:01 +05:00
parent 468beec998
commit ca016ada43
9 changed files with 108 additions and 33 deletions
+6
View File
@@ -69,6 +69,12 @@ export function rangeInput(page: Page, name: RegExp | string): Locator {
return page.getByRole("slider", { name });
}
export async function renderText(page: Page, value: string): Promise<void> {
const input = page.getByRole("textbox", { name: "Text data" });
await input.fill(value);
await page.getByRole("button", { name: "Render text" }).click();
}
export async function uploadImage(page: Page, file: SourceFile): Promise<void> {
const input = page.locator('input[type="file"]');
await expect(input).toHaveCount(1);