forked from trent_larson/crowd-funder-for-time-pwa
Update: locators match changes to activity list
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user