From 6905372281b5b8ce23c28db921f32aae104e817f Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Mon, 21 Jul 2025 17:05:22 +0800 Subject: [PATCH] Update: locators match changes to activity list --- test-playwright/35-record-gift-from-image-share.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-playwright/35-record-gift-from-image-share.spec.ts b/test-playwright/35-record-gift-from-image-share.spec.ts index f1de7fb5..968fe94f 100644 --- a/test-playwright/35-record-gift-from-image-share.spec.ts +++ b/test-playwright/35-record-gift-from-image-share.spec.ts @@ -90,8 +90,8 @@ test('Record item given from image-share', async ({ page }) => { // Refresh home view and check gift await page.goto('./'); - const item1 = page.locator('li').filter({ hasText: finalTitle }); - await expect(item1.getByRole('img')).toBeVisible(); + const item1 = page.locator('li:first-child').filter({ hasText: finalTitle }); + await expect(item1.getByRole('img', { name: 'Activity image' })).toBeVisible(); }); // // I believe there's a way to test this service worker feature.