From cfae0a105c6abd7d05e00828d599c0ca62b1b7fc Mon Sep 17 00:00:00 2001 From: Coracle-Bot Date: Fri, 11 Sep 2026 16:03:15 +0000 Subject: [PATCH] Open an article card away from its footer --- e2e/specs/articles-threads.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/specs/articles-threads.spec.ts b/e2e/specs/articles-threads.spec.ts index 84f2c1e2..4005585f 100644 --- a/e2e/specs/articles-threads.spec.ts +++ b/e2e/specs/articles-threads.spec.ts @@ -74,8 +74,14 @@ const articleCards = (page: Page) => page.locator('[data-component="ArticleItem" const comment = (page: Page, text: string) => page.locator('[data-component="Comment"]').filter({hasText: text}) +// Clicked near its top-left corner rather than at its centre: the link is an overlay covering the +// whole card, and a card whose footer wraps onto a second line puts that interactive row under the +// centre point, where it swallows the click. const openArticle = (page: Page, title: string) => - articleCards(page).filter({hasText: title}).getByRole("link", {name: title, exact: true}).click() + articleCards(page) + .filter({hasText: title}) + .getByRole("link", {name: title, exact: true}) + .click({position: {x: 20, y: 20}}) test("US-037 write and publish an article", async ({seed, as}) => { const scenario = await seed(({relay, user, at}) => {