Tests: a link's curve starts with its underline; the busy forest opened by places, not titles other tests rename
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
e77b9ba073
commit
ead9c0347d
2 files changed
+18
-6
No files matched your search
+3
-2
@@ -294,10 +294,11 @@ test("a curve per open edge, from where each pane was opened to its title; it fo
|
||||
expect(p.y).toBeLessThan(r.y + r.height + slack);
|
||||
};
|
||||
await nearIn(kinds.locator(".lnk", { hasText: "Eukaryotes" }), edge("Two kinds of cell", "Eukaryote")[0].a);
|
||||
// From words, the curve starts at the right end of their underline (a short step joins it to the lead-out in the gap below).
|
||||
// From words, the curve starts with their underline (it draws it, from their left), then a short step down to the lead-out in the gap below.
|
||||
const link = (await kinds.locator(".lnk", { hasText: "Eukaryotes" }).first().boundingBox())!;
|
||||
const start = edge("Two kinds of cell", "Eukaryote")[0].a;
|
||||
expect(Math.abs(start.x - (link.x + link.width))).toBeLessThan(2);
|
||||
// (It starts with the link's underline, which it draws, from the link's left.)
|
||||
expect(Math.abs(start.x - link.x)).toBeLessThan(2);
|
||||
expect(start.y).toBeGreaterThan(link.y + link.height - 9);
|
||||
expect(start.y).toBeLessThan(link.y + link.height);
|
||||
await nearIn(kinds.locator(".node.forked > .row", { hasText: "Simple cells" }), edge("Two kinds of cell", "Simple cells")[0].a);
|
||||
|
||||
Reference in new issue
Block a user