test: fix e2e webkit

This commit is contained in:
2026-10-06 17:27:00 +05:00
parent 40338544de
commit 83e75b5589
4 changed files with 22 additions and 7 deletions
+4 -1
View File
@@ -295,7 +295,10 @@ test("chain: remove step returns to a single tool", async ({ page }) => {
exact: true,
});
await expect(stepTwo).toBeVisible();
await page.getByRole("button", { name: "Remove step" }).last().click();
// Клик по remove именно в карточке Grayscale: порядок шагов зависит от
// тайминга рендера и на разных движках может отличаться.
const card = page.getByRole("article").filter({ hasText: "Grayscale PNG" });
await card.getByLabel("Remove step").click();
await expect(stepTwo).toHaveCount(0);
expectNoErrors(sink);
});