[137][123] e2e: Klick-Wechsel an Stelle mit echtem Schatten (nach [142]); Transform-Test wählt nach Esc-Esc neu aus (Wettlauf)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
2 files changed
+10
-4
No files matched your search
@@ -41,10 +41,11 @@ test("Situation 1:500: erneuter Klick schaltet durch Bemassung, Schatten und Gel
|
||||
await showSnapshot(page, "Situation 1:500");
|
||||
await expect(page.locator("svg.plan-svg").first()).toBeVisible({ timeout: 30_000 });
|
||||
const hint = page.getByTestId("status-hint");
|
||||
// Südfassade: Fensterbemassung über Baugrube, Schatten, Gelände, Höhenlinien und Parzelle.
|
||||
// Nordwestlich des Hauses (Schatten fällt nach Nordwesten, [142]): Bemassung, Schatten, Gelände, Höhenlinien.
|
||||
const [PX, PY] = [2, 16];
|
||||
await expect(async () => {
|
||||
await page.keyboard.press("Escape");
|
||||
const p = await screenAt(page, 9.2, -1.19);
|
||||
const p = await screenAt(page, PX, PY);
|
||||
await page.mouse.click(p.x, p.y);
|
||||
await expect(hint).toContainText(/^1\/\d+ Treffer/, { timeout: 1000 });
|
||||
}).toPass({ timeout: 30_000 });
|
||||
@@ -53,7 +54,7 @@ test("Situation 1:500: erneuter Klick schaltet durch Bemassung, Schatten und Gel
|
||||
const seen: string[] = [];
|
||||
for (let i = 2; i <= n; i++) {
|
||||
await page.waitForTimeout(450); // kein Doppelklick
|
||||
const p = await screenAt(page, 9.2, -1.19);
|
||||
const p = await screenAt(page, PX, PY);
|
||||
await page.mouse.click(p.x, p.y);
|
||||
await expect(hint).toContainText(`${i}/${n} Treffer`);
|
||||
seen.push((await objInfo(page).locator(".objinfo-kind").first().textContent().catch(() => "")) ?? "");
|
||||
@@ -63,7 +64,7 @@ test("Situation 1:500: erneuter Klick schaltet durch Bemassung, Schatten und Gel
|
||||
expect(seen).toContain("terrain");
|
||||
// Nach dem letzten wieder der erste Treffer.
|
||||
await page.waitForTimeout(450);
|
||||
const p = await screenAt(page, 9.2, -1.19);
|
||||
const p = await screenAt(page, PX, PY);
|
||||
await page.mouse.click(p.x, p.y);
|
||||
await expect(hint).toContainText(`1/${n} Treffer`);
|
||||
// Escape hebt die Auswahl auf, der Hinweis verschwindet.
|
||||
|
||||
@@ -105,12 +105,17 @@ test("Bewegen, Drehen, Spiegeln über Knopf, getippten Befehl und Taste; Esc/Ent
|
||||
expect(await lines(page)).toHaveLength(2);
|
||||
|
||||
// Enter = Punkt an der letzten Mausposition: Kopie (Taste I im Befehlsfeld) nach rechts.
|
||||
// Neu wählen: je nach Timing beendet schon das erste Esc den Befehl, dann hebt das zweite die Auswahl auf.
|
||||
await selectAll(page);
|
||||
await page.getByRole("button", { name: "Verschieben", exact: true }).click();
|
||||
await commandInput(page).press("i");
|
||||
await typeCommand(page, "0,0");
|
||||
const p = await screenOf(page, 4, 0);
|
||||
await page.mouse.move(p.x - 2, p.y);
|
||||
await page.mouse.move(p.x, p.y);
|
||||
await blurFocus(page);
|
||||
// Mausposition muss beim Befehl angekommen sein (Zeigerereignis läuft über rAF), sonst nimmt Enter den alten Punkt.
|
||||
await page.waitForTimeout(200);
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(prompt(page)).toHaveText("Befehl:");
|
||||
expect(await lines(page)).toHaveLength(4);
|
||||
|
||||
Reference in new issue
Block a user