Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions e2e/team.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down