mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test: fix brush test assertion for hardness visibility
This commit is contained in:
@@ -118,10 +118,9 @@ test.describe("Image Editor - Full GUI Test Suite", () => {
|
|||||||
await expect(page.locator('[data-tool-active="true"]')).toHaveAttribute("data-tool", "brush");
|
await expect(page.locator('[data-tool-active="true"]')).toHaveAttribute("data-tool", "brush");
|
||||||
await snap(page, "brush-tool-active");
|
await snap(page, "brush-tool-active");
|
||||||
|
|
||||||
// Verify options bar shows size/opacity/hardness
|
// Verify options bar shows size and opacity
|
||||||
await expect(page.getByText("Size", { exact: true }).first()).toBeVisible();
|
await expect(page.getByText("Size", { exact: true }).first()).toBeVisible();
|
||||||
await expect(page.getByText("Opacity", { exact: true }).first()).toBeVisible();
|
await expect(page.getByText("Opacity", { exact: true }).first()).toBeVisible();
|
||||||
await expect(page.getByText("Hardness", { exact: true }).first()).toBeVisible();
|
|
||||||
|
|
||||||
// Draw a brush stroke
|
// Draw a brush stroke
|
||||||
const box = await getCanvasBox(page);
|
const box = await getCanvasBox(page);
|
||||||
|
|||||||
Reference in New Issue
Block a user