From 3f06cea3bfa2bdb5d018719282cb146e88c40e64 Mon Sep 17 00:00:00 2001 From: eti Date: Tue, 22 Sep 2026 21:29:43 +0200 Subject: [PATCH] web/tickets: add Copy AT URI to the more menu Signed-off-by: eti --- .../repo/tickets/Ticket.stories.svelte | 3 + .../lib/components/repo/tickets/Ticket.svelte | 77 ++++++++++--------- 2 files changed, 42 insertions(+), 38 deletions(-) diff --git a/web/src/lib/components/repo/tickets/Ticket.stories.svelte b/web/src/lib/components/repo/tickets/Ticket.stories.svelte index d387dd445..e6f654462 100644 --- a/web/src/lib/components/repo/tickets/Ticket.stories.svelte +++ b/web/src/lib/components/repo/tickets/Ticket.stories.svelte @@ -101,6 +101,9 @@ Knot will mint service-auth to access spindle as gitrepo's authority. This way, await userEvent.click(canvas.getByRole("button", { name: /more actions for/i })); const report = await canvas.findByRole("menuitem", { name: /report pull request/i }); await waitFor(() => expect(report).toBeVisible()); + const items = canvas.getAllByRole("menuitem"); + const copy = canvas.getByRole("menuitem", { name: /copy at uri/i }); + expect(items[items.indexOf(report) - 1]).toBe(copy); }} > {#snippet template(args)} diff --git a/web/src/lib/components/repo/tickets/Ticket.svelte b/web/src/lib/components/repo/tickets/Ticket.svelte index e095b059b..5d0581158 100644 --- a/web/src/lib/components/repo/tickets/Ticket.svelte +++ b/web/src/lib/components/repo/tickets/Ticket.svelte @@ -1,11 +1,11 @@