Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
id: bugfix-698
title: dashboard-e2e-team-tab-review-
protocol: bugfix
phase: verified
plan_phases: []
current_plan_phase: null
gates: {}
iteration: 1
build_complete: false
history: []
started_at: '2026-04-23T09:01:55.935Z'
updated_at: '2026-04-23T09:19:12.176Z'
pr_history:
- phase: investigate
pr_number: 699
branch: builder/bugfix-698
created_at: '2026-04-23T09:18:07.701Z'
13 changes: 11 additions & 2 deletions packages/codev/src/agent-farm/__tests__/e2e/team-tab.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,23 @@ test.describe('Team tab: review-blocking rendering (spec 694)', () => {
await teamTab.click();
await page.locator('.team-review-blocking').first().waitFor({ state: 'visible', timeout: 5_000 });

// Identify each card by its GitHub handle element (unique per member),
// not by substring match on the whole card — review-blocking sentences
// legitimately mention the other member's name, which would otherwise
// cause `hasText: 'Amr'` / `hasText: 'Waleed'` to match multiple cards.
const amrCard = page
.locator('.team-member-card')
.filter({ has: page.locator('.team-member-github', { hasText: /^@amr$/ }) });
const waleedCard = page
.locator('.team-member-card')
.filter({ has: page.locator('.team-member-github', { hasText: /^@waleed$/ }) });

// Amr's card: second-person "You're waiting for Waleed".
const amrCard = page.locator('.team-member-card', { hasText: 'Amr' });
await expect(amrCard).toContainText("You're waiting for");
await expect(amrCard).toContainText('Waleed');
await expect(amrCard).toContainText('#688');

// Waleed's card: "Amr is waiting for you".
const waleedCard = page.locator('.team-member-card', { hasText: 'Waleed' });
await expect(waleedCard).toContainText('is waiting for you to review');
await expect(waleedCard).toContainText('#688');

Expand Down
Loading