From 521455dd68f125913fe3cd3b8c5ea91f4e8e865c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 03:56:41 +0000 Subject: [PATCH 1/2] Initial plan From bf6ba7827b6c187558f6bce27307356f742e522b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 04:03:01 +0000 Subject: [PATCH 2/2] Make link assertions more robust by scoping to member names Co-authored-by: ann-kilzer <4602369+ann-kilzer@users.noreply.github.com> --- e2e/team.spec.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/e2e/team.spec.ts b/e2e/team.spec.ts index c8048ca..14c38e4 100644 --- a/e2e/team.spec.ts +++ b/e2e/team.spec.ts @@ -38,19 +38,19 @@ test('shows the team in English', async ({ page }) => { await verifyTeamMemberCard(cards[7], 'Krizza Bullecer', 'Legacy Lead') await verifyTeamMemberCard(cards[8], 'Aidan Fournier', 'Legacy Lead') - // verify link - const links = await page.getByLabel('link-wrapper').all() - expect(links).toHaveLength(2) - const rossLink = links[0] - const annLink = links[1] - await expect(annLink).toBeVisible() - await expect(annLink).toHaveRole('link') - await expect(annLink).toHaveAttribute('href', 'https://annkilzer.net') - await expect(annLink).toHaveAttribute('target', '_blank') + // verify links scoped to specific member cards + // Find link by locating the card with the member name, then getting the parent link wrapper + const rossLink = teamContainer.getByLabel('link-wrapper').filter({ has: page.getByText('Rossella Ferrandino') }) await expect(rossLink).toBeVisible() await expect(rossLink).toHaveRole('link') await expect(rossLink).toHaveAttribute('href', 'https://www.rossellaferrandino.info/') await expect(rossLink).toHaveAttribute('target', '_blank') + + const annLink = teamContainer.getByLabel('link-wrapper').filter({ has: page.getByText('Ann Kilzer') }) + await expect(annLink).toBeVisible() + await expect(annLink).toHaveRole('link') + await expect(annLink).toHaveAttribute('href', 'https://annkilzer.net') + await expect(annLink).toHaveAttribute('target', '_blank') }) test('shows the team in Japanese', async ({ page, viewport }) => {