fix test for new item in feed
This commit is contained in:
@@ -130,8 +130,9 @@ test('Record something given', async ({ page }) => {
|
||||
// Verify the gift we just recorded appears in the activity feed
|
||||
await expect(page.getByText(finalTitle, { exact: false })).toBeVisible();
|
||||
|
||||
// Click the specific gift item
|
||||
const item = page.locator('li:first-child').filter({ hasText: finalTitle });
|
||||
// Click the specific gift item (find by title - don't assume first-child,
|
||||
// since parallel tests or shared DB can add newer items above ours)
|
||||
const item = page.locator('ul#listLatestActivity li').filter({ hasText: finalTitle });
|
||||
await retryClick(page, item.locator('[data-testid="circle-info-link"]'));
|
||||
await expect(page.getByRole('heading', { name: 'Verifiable Claim Details' })).toBeVisible();
|
||||
// Verify we're viewing the specific gift we recorded
|
||||
|
||||
Reference in New Issue
Block a user