mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 13:11:18 -08:00
Fix two page tests the git board path and the Markdown box click fix left failing
AI Assisted
This commit is contained in:
1 parent
65fbd1bfe1
commit
ce073cd07a
1 file changed
+2
-2
@@ -96,7 +96,7 @@ test("a press in the empty part of the answer box selects like a textarea: Shift
|
|||||||
const range = () => host.evaluate((el) => [el.field.selectionStart, el.field.selectionEnd]);
|
const range = () => host.evaluate((el) => [el.field.selectionStart, el.field.selectionEnd]);
|
||||||
const box = await host.boundingBox();
|
const box = await host.boundingBox();
|
||||||
const low = { x: box.x + box.width / 2, y: box.y + box.height - 12 };
|
const low = { x: box.x + box.width / 2, y: box.y + box.height - 12 };
|
||||||
assert.equal(await host.evaluate((el) => getComputedStyle(el).cursor), "text", "the whole box shows the text pointer");
|
assert.equal(await styleOf(host, "cursor"), "text", "the whole box shows the text pointer");
|
||||||
|
|
||||||
await s.page.keyboard.press("Home");
|
await s.page.keyboard.press("Home");
|
||||||
// page.mouse takes no modifiers option: hold Shift on the keyboard.
|
// page.mouse takes no modifiers option: hold Shift on the keyboard.
|
||||||
@@ -621,7 +621,7 @@ test("a note box over the git board grows no box, and the card flows at its own
|
|||||||
project: dir,
|
project: dir,
|
||||||
payload: { reread: true, board: { describe: "export-more" }, items: [confirm] },
|
payload: { reread: true, board: { describe: "export-more" }, items: [confirm] },
|
||||||
});
|
});
|
||||||
await git.page.getByRole("tablist").waitFor();
|
await git.page.locator(".git-step").first().waitFor();
|
||||||
const gitCard = itemCard(git.page, "y1");
|
const gitCard = itemCard(git.page, "y1");
|
||||||
await gitCard.waitFor();
|
await gitCard.waitFor();
|
||||||
const note = gitCard.locator(".md-host").first();
|
const note = gitCard.locator(".md-host").first();
|
||||||
|
|||||||
Reference in new issue
Block a user