ID-specific locators

This commit is contained in:
Jose Olarte III
2024-07-30 18:50:53 +08:00
parent 37d4e36561
commit 2aead1b4b1
6 changed files with 10 additions and 10 deletions

View File

@@ -32,6 +32,6 @@ test('Add contact', async ({ page }) => {
// Confirm that home feed shows contact
await page.goto('./');
await expect(page.locator('li').filter({ hasText: 'Contact 00 gave to' }).nth(0)).toBeVisible();
await expect(page.locator('li').filter({ hasText: 'Contact 00 received' }).nth(0)).toBeVisible();
await expect(page.locator('ul#listLatestActivity li').filter({ hasText: 'Contact 00 gave to' }).nth(0)).toBeVisible();
await expect(page.locator('ul#listLatestActivity li').filter({ hasText: 'Contact 00 received' }).nth(0)).toBeVisible();
});